From 709d01a3b1e4f898d109f2718968621515d833db Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Sun, 3 Jan 2021 21:44:27 +0100 Subject: [PATCH] Fixed CompletedDownloadService tests Fixes #1869 --- .../Download/CompletedDownloadServiceTests/ImportFixture.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core.Test/Download/CompletedDownloadServiceTests/ImportFixture.cs b/src/NzbDrone.Core.Test/Download/CompletedDownloadServiceTests/ImportFixture.cs index fd2f56c13..e5ca4946f 100644 --- a/src/NzbDrone.Core.Test/Download/CompletedDownloadServiceTests/ImportFixture.cs +++ b/src/NzbDrone.Core.Test/Download/CompletedDownloadServiceTests/ImportFixture.cs @@ -37,7 +37,6 @@ namespace NzbDrone.Core.Test.Download.CompletedDownloadServiceTests _trackedDownload = Builder.CreateNew() .With(c => c.State = TrackedDownloadState.Downloading) - .With(c => c.ImportItem = completed) .With(c => c.DownloadItem = completed) .With(c => c.RemoteAlbum = remoteAlbum) .Build(); @@ -57,6 +56,10 @@ namespace NzbDrone.Core.Test.Download.CompletedDownloadServiceTests Mocker.GetMock() .Setup(s => s.GetArtist("Drone.S01E01.HDTV")) .Returns(remoteAlbum.Artist); + + Mocker.GetMock() + .Setup(s => s.ProvideImportItem(It.IsAny(), It.IsAny())) + .Returns((i, p) => i); } private Album CreateAlbum(int id, int trackCount)