diff --git a/src/NzbDrone.Core.Test/IndexerSearchTests/SeriesSearchServiceFixture.cs b/src/NzbDrone.Core.Test/IndexerSearchTests/SeriesSearchServiceFixture.cs index c3aa538c9..030da3710 100644 --- a/src/NzbDrone.Core.Test/IndexerSearchTests/SeriesSearchServiceFixture.cs +++ b/src/NzbDrone.Core.Test/IndexerSearchTests/SeriesSearchServiceFixture.cs @@ -9,6 +9,7 @@ using NzbDrone.Core.IndexerSearch; using NzbDrone.Core.Test.Framework; using NzbDrone.Core.Tv; +using NzbDrone.Core.Messaging.Commands; namespace NzbDrone.Core.Test.IndexerSearchTests { @@ -49,7 +50,7 @@ public void should_only_include_monitored_seasons() new Season { SeasonNumber = 1, Monitored = true } }; - Subject.Execute(new SeriesSearchCommand{ SeriesId = _series.Id }); + Subject.Execute(new SeriesSearchCommand { SeriesId = _series.Id, Trigger = CommandTrigger.Manual }); Mocker.GetMock() .Verify(v => v.SeasonSearch(_series.Id, It.IsAny(), false, true), Times.Exactly(_series.Seasons.Count(s => s.Monitored))); @@ -70,9 +71,9 @@ public void should_start_with_lower_seasons_first() Mocker.GetMock() .Setup(s => s.SeasonSearch(_series.Id, It.IsAny(), false, true)) .Returns(new List()) - .Callback((seriesId, seasonNumber, missingOnly) => seasonOrder.Add(seasonNumber)); + .Callback((seriesId, seasonNumber, missingOnly, userInvokedSearch) => seasonOrder.Add(seasonNumber)); - Subject.Execute(new SeriesSearchCommand { SeriesId = _series.Id }); + Subject.Execute(new SeriesSearchCommand { SeriesId = _series.Id, Trigger = CommandTrigger.Manual }); seasonOrder.First().Should().Be(_series.Seasons.OrderBy(s => s.SeasonNumber).First().SeasonNumber); }