diff --git a/src/NzbDrone.Core.Test/Download/TrackedDownloads/TrackedDownloadAlreadyImportedFixture.cs b/src/NzbDrone.Core.Test/Download/TrackedDownloads/TrackedDownloadAlreadyImportedFixture.cs index 87c3cebad..3993a5a53 100644 --- a/src/NzbDrone.Core.Test/Download/TrackedDownloads/TrackedDownloadAlreadyImportedFixture.cs +++ b/src/NzbDrone.Core.Test/Download/TrackedDownloads/TrackedDownloadAlreadyImportedFixture.cs @@ -7,6 +7,7 @@ using NzbDrone.Core.Test.Framework; using NzbDrone.Core.Tv; using FizzWare.NBuilder; +using NzbDrone.Core.Download; namespace NzbDrone.Core.Test.Download.TrackedDownloads { @@ -26,8 +27,12 @@ public void Setup() .With(r => r.Episodes = _episodes) .Build(); + var downloadItem = Builder.CreateNew() + .Build(); + _trackedDownload = Builder.CreateNew() .With(t => t.RemoteEpisode = remoteEpisode) + .With(t => t.DownloadItem = downloadItem) .Build(); _historyItems = new List(); diff --git a/src/NzbDrone.Core.Test/TvTests/RefreshEpisodeServiceFixture.cs b/src/NzbDrone.Core.Test/TvTests/RefreshEpisodeServiceFixture.cs index 4d825085f..7876b535e 100644 --- a/src/NzbDrone.Core.Test/TvTests/RefreshEpisodeServiceFixture.cs +++ b/src/NzbDrone.Core.Test/TvTests/RefreshEpisodeServiceFixture.cs @@ -150,7 +150,7 @@ public void should_not_change_monitored_status_for_existing_episodes() } [Test] - public void should_not_set_monitored_status_for_old_episodes_to_false_if_recent_enough() + public void should_not_set_monitored_status_for_old_episodes_to_false_if_episodes_existed() { var series = GetSeries(); series.Seasons = new List(); @@ -176,6 +176,8 @@ public void should_not_set_monitored_status_for_old_episodes_to_false_if_recent_ _insertedEpisodes[1].Monitored.Should().Be(true); _insertedEpisodes[2].Monitored.Should().Be(true); _insertedEpisodes[3].Monitored.Should().Be(true); + + ExceptionVerification.ExpectedWarns(1); } [Test] diff --git a/src/NzbDrone.Core/Download/CompletedDownloadService.cs b/src/NzbDrone.Core/Download/CompletedDownloadService.cs index 26cfd8aee..e05d866ca 100644 --- a/src/NzbDrone.Core/Download/CompletedDownloadService.cs +++ b/src/NzbDrone.Core/Download/CompletedDownloadService.cs @@ -46,6 +46,7 @@ public CompletedDownloadService(IEventAggregator eventAggregator, _parsingService = parsingService; _seriesService = seriesService; _trackedDownloadAlreadyImported = trackedDownloadAlreadyImported; + _logger = logger; } public void Check(TrackedDownload trackedDownload)