From 413dd51db12b39bbbfbd43ffbbddf086638e3355 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 2 May 2017 22:06:18 -0700 Subject: [PATCH] Fix unit test --- .../EpisodeImport/ImportDecisionMakerFixture.cs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/NzbDrone.Core.Test/MediaFiles/EpisodeImport/ImportDecisionMakerFixture.cs b/src/NzbDrone.Core.Test/MediaFiles/EpisodeImport/ImportDecisionMakerFixture.cs index f56bb76b1..700bd720d 100644 --- a/src/NzbDrone.Core.Test/MediaFiles/EpisodeImport/ImportDecisionMakerFixture.cs +++ b/src/NzbDrone.Core.Test/MediaFiles/EpisodeImport/ImportDecisionMakerFixture.cs @@ -91,16 +91,17 @@ namespace NzbDrone.Core.Test.MediaFiles.EpisodeImport [Test] public void should_call_all_specifications() { + var downloadClientItem = Builder.CreateNew().Build(); GivenSpecifications(_pass1, _pass2, _pass3, _fail1, _fail2, _fail3); - Subject.GetImportDecisions(_videoFiles, new Series(), new DownloadClientItem(), null, false); + Subject.GetImportDecisions(_videoFiles, new Series(), downloadClientItem, null, false); - _fail1.Verify(c => c.IsSatisfiedBy(_localEpisode, null), Times.Once()); - _fail2.Verify(c => c.IsSatisfiedBy(_localEpisode, null), Times.Once()); - _fail3.Verify(c => c.IsSatisfiedBy(_localEpisode, null), Times.Once()); - _pass1.Verify(c => c.IsSatisfiedBy(_localEpisode, null), Times.Once()); - _pass2.Verify(c => c.IsSatisfiedBy(_localEpisode, null), Times.Once()); - _pass3.Verify(c => c.IsSatisfiedBy(_localEpisode, null), Times.Once()); + _fail1.Verify(c => c.IsSatisfiedBy(_localEpisode, downloadClientItem), Times.Once()); + _fail2.Verify(c => c.IsSatisfiedBy(_localEpisode, downloadClientItem), Times.Once()); + _fail3.Verify(c => c.IsSatisfiedBy(_localEpisode, downloadClientItem), Times.Once()); + _pass1.Verify(c => c.IsSatisfiedBy(_localEpisode, downloadClientItem), Times.Once()); + _pass2.Verify(c => c.IsSatisfiedBy(_localEpisode, downloadClientItem), Times.Once()); + _pass3.Verify(c => c.IsSatisfiedBy(_localEpisode, downloadClientItem), Times.Once()); } [Test]