From 1e0ec4aefb53cb0eb9f94fd8d1943093dd6a2898 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Wed, 5 Jul 2023 08:44:51 +0300 Subject: [PATCH] Fix tests in ImportListSyncServiceFixture --- .../ImportListSyncServiceFixture.cs | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/NzbDrone.Core.Test/ImportListTests/ImportListSyncServiceFixture.cs b/src/NzbDrone.Core.Test/ImportListTests/ImportListSyncServiceFixture.cs index 6e38839c8..7f2fbddab 100644 --- a/src/NzbDrone.Core.Test/ImportListTests/ImportListSyncServiceFixture.cs +++ b/src/NzbDrone.Core.Test/ImportListTests/ImportListSyncServiceFixture.cs @@ -156,6 +156,10 @@ namespace NzbDrone.Core.Test.ImportList .Setup(v => v.GetAllMovies()) .Returns(_existingMovies); + Mocker.GetMock() + .Setup(v => v.GetAllListMovies()) + .Returns(_list1Movies); + Subject.Execute(_commandAll); Mocker.GetMock() @@ -179,6 +183,10 @@ namespace NzbDrone.Core.Test.ImportList .Setup(v => v.GetAllMovies()) .Returns(_existingMovies); + Mocker.GetMock() + .Setup(v => v.GetAllListMovies()) + .Returns(_list1Movies); + Subject.Execute(_commandAll); Mocker.GetMock() @@ -204,6 +212,10 @@ namespace NzbDrone.Core.Test.ImportList .Setup(v => v.GetAllMovies()) .Returns(_existingMovies); + Mocker.GetMock() + .Setup(v => v.GetAllListMovies()) + .Returns(_list1Movies); + Subject.Execute(_commandAll); Mocker.GetMock() @@ -224,6 +236,10 @@ namespace NzbDrone.Core.Test.ImportList .Setup(v => v.GetAllMovies()) .Returns(_existingMovies); + Mocker.GetMock() + .Setup(v => v.GetAllListMovies()) + .Returns(_list1Movies); + Subject.Execute(_commandAll); Mocker.GetMock() @@ -241,6 +257,10 @@ namespace NzbDrone.Core.Test.ImportList .Setup(v => v.GetAllMovies()) .Returns(_existingMovies); + Mocker.GetMock() + .Setup(v => v.GetAllListMovies()) + .Returns(_list1Movies); + Subject.Execute(_commandAll); Mocker.GetMock() @@ -267,6 +287,10 @@ namespace NzbDrone.Core.Test.ImportList .Setup(v => v.GetAllMovies()) .Returns(_existingMovies); + Mocker.GetMock() + .Setup(v => v.GetAllListMovies()) + .Returns(_list1Movies); + Subject.Execute(_commandAll); Mocker.GetMock()