|
|
|
@ -247,6 +247,9 @@ namespace NzbDrone.Core.Test
|
|
|
|
|
mocker.GetMock<InventoryProvider>()
|
|
|
|
|
.Setup(c => c.IsQualityNeeded(It.Is<EpisodeParseResult>(d => d.Series != null && d.Episodes.Count != 0))).Returns(false);
|
|
|
|
|
|
|
|
|
|
mocker.GetMock<SceneNameMappingProvider>()
|
|
|
|
|
.Setup(s => s.GetSceneName(It.IsAny<int>())).Returns("");
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
mocker.Resolve<EpisodeSearchJob>().Start(new ProgressNotification("Test"), episode.EpisodeId);
|
|
|
|
|
|
|
|
|
@ -295,6 +298,9 @@ namespace NzbDrone.Core.Test
|
|
|
|
|
mocker.GetMock<InventoryProvider>()
|
|
|
|
|
.Setup(c => c.IsQualityNeeded(It.Is<EpisodeParseResult>(d => d.Series != null && d.Episodes.Count != 0))).Returns(false);
|
|
|
|
|
|
|
|
|
|
mocker.GetMock<SceneNameMappingProvider>()
|
|
|
|
|
.Setup(s => s.GetSceneName(71256)).Returns("The Daily Show");
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
mocker.Resolve<EpisodeSearchJob>().Start(new ProgressNotification("Test"), episode.EpisodeId);
|
|
|
|
|
|
|
|
|
@ -347,7 +353,10 @@ namespace NzbDrone.Core.Test
|
|
|
|
|
.Returns(indexers);
|
|
|
|
|
|
|
|
|
|
mocker.GetMock<InventoryProvider>()
|
|
|
|
|
.Setup(c => c.IsQualityNeeded(It.Is<EpisodeParseResult>(d => d.Series != null && d.Episodes.Count != 0))).Returns(false);
|
|
|
|
|
.Setup(c => c.IsQualityNeeded(It.Is<EpisodeParseResult>(d => d.Series != null && d.Episodes.Count != 0))).Returns(false);;
|
|
|
|
|
|
|
|
|
|
mocker.GetMock<SceneNameMappingProvider>()
|
|
|
|
|
.Setup(s => s.GetSceneName(It.IsAny<int>())).Returns("");
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
|
mocker.Resolve<EpisodeSearchJob>().Start(new ProgressNotification("Test"), episode.EpisodeId);
|
|
|
|
|