mirror of
https://github.com/Radarr/Radarr.git
synced 2024-08-18 08:19:38 +02:00
Fix tests in ImportListSyncServiceFixture
This commit is contained in:
parent
5c46c75ce7
commit
1e0ec4aefb
@ -156,6 +156,10 @@ public void should_log_only_on_clean_library_if_config_value_logonly()
|
||||
.Setup(v => v.GetAllMovies())
|
||||
.Returns(_existingMovies);
|
||||
|
||||
Mocker.GetMock<IImportListMovieService>()
|
||||
.Setup(v => v.GetAllListMovies())
|
||||
.Returns(_list1Movies);
|
||||
|
||||
Subject.Execute(_commandAll);
|
||||
|
||||
Mocker.GetMock<IMovieService>()
|
||||
@ -179,6 +183,10 @@ public void should_unmonitor_on_clean_library_if_config_value_keepAndUnmonitor()
|
||||
.Setup(v => v.GetAllMovies())
|
||||
.Returns(_existingMovies);
|
||||
|
||||
Mocker.GetMock<IImportListMovieService>()
|
||||
.Setup(v => v.GetAllListMovies())
|
||||
.Returns(_list1Movies);
|
||||
|
||||
Subject.Execute(_commandAll);
|
||||
|
||||
Mocker.GetMock<IMovieService>()
|
||||
@ -204,6 +212,10 @@ public void should_not_clean_on_clean_library_if_tmdb_match()
|
||||
.Setup(v => v.GetAllMovies())
|
||||
.Returns(_existingMovies);
|
||||
|
||||
Mocker.GetMock<IImportListMovieService>()
|
||||
.Setup(v => v.GetAllListMovies())
|
||||
.Returns(_list1Movies);
|
||||
|
||||
Subject.Execute(_commandAll);
|
||||
|
||||
Mocker.GetMock<IMovieService>()
|
||||
@ -224,6 +236,10 @@ public void should_fallback_to_imdbid_on_clean_library_if_tmdb_not_found()
|
||||
.Setup(v => v.GetAllMovies())
|
||||
.Returns(_existingMovies);
|
||||
|
||||
Mocker.GetMock<IImportListMovieService>()
|
||||
.Setup(v => v.GetAllListMovies())
|
||||
.Returns(_list1Movies);
|
||||
|
||||
Subject.Execute(_commandAll);
|
||||
|
||||
Mocker.GetMock<IMovieService>()
|
||||
@ -241,6 +257,10 @@ public void should_delete_movies_not_files_on_clean_library_if_config_value_logo
|
||||
.Setup(v => v.GetAllMovies())
|
||||
.Returns(_existingMovies);
|
||||
|
||||
Mocker.GetMock<IImportListMovieService>()
|
||||
.Setup(v => v.GetAllListMovies())
|
||||
.Returns(_list1Movies);
|
||||
|
||||
Subject.Execute(_commandAll);
|
||||
|
||||
Mocker.GetMock<IMovieService>()
|
||||
@ -267,6 +287,10 @@ public void should_delete_movies_and_files_on_clean_library_if_config_value_logo
|
||||
.Setup(v => v.GetAllMovies())
|
||||
.Returns(_existingMovies);
|
||||
|
||||
Mocker.GetMock<IImportListMovieService>()
|
||||
.Setup(v => v.GetAllListMovies())
|
||||
.Returns(_list1Movies);
|
||||
|
||||
Subject.Execute(_commandAll);
|
||||
|
||||
Mocker.GetMock<IMovieService>()
|
||||
|
Loading…
Reference in New Issue
Block a user