From 6c20832c7fc6b067b341ba6f73784321bbf6611b Mon Sep 17 00:00:00 2001 From: Qstick Date: Fri, 9 Feb 2018 23:14:15 -0500 Subject: [PATCH] Fixed: Import List Tests --- .../ImportListTests/ImportListSyncServiceFixture.cs | 2 +- .../AlbumMonitoredServiceFixture.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Core.Test/ImportListTests/ImportListSyncServiceFixture.cs b/src/NzbDrone.Core.Test/ImportListTests/ImportListSyncServiceFixture.cs index 2a125fee3..307e66759 100644 --- a/src/NzbDrone.Core.Test/ImportListTests/ImportListSyncServiceFixture.cs +++ b/src/NzbDrone.Core.Test/ImportListTests/ImportListSyncServiceFixture.cs @@ -38,7 +38,7 @@ namespace NzbDrone.Core.Test.ImportListTests Mocker.GetMock() .Setup(v => v.Get(It.IsAny())) - .Returns(new ImportListDefinition()); + .Returns(new ImportListDefinition{ ShouldMonitor = true }); Mocker.GetMock() .Setup(v => v.Fetch()) diff --git a/src/NzbDrone.Core.Test/MusicTests/AlbumMonitoredServiceTests/AlbumMonitoredServiceFixture.cs b/src/NzbDrone.Core.Test/MusicTests/AlbumMonitoredServiceTests/AlbumMonitoredServiceFixture.cs index efd2c040b..c8bc171d9 100644 --- a/src/NzbDrone.Core.Test/MusicTests/AlbumMonitoredServiceTests/AlbumMonitoredServiceFixture.cs +++ b/src/NzbDrone.Core.Test/MusicTests/AlbumMonitoredServiceTests/AlbumMonitoredServiceFixture.cs @@ -62,9 +62,9 @@ namespace NzbDrone.Core.Test.MusicTests.AlbumMonitoredServiceTests [Test] public void should_be_able_to_monitor_albums_when_passed_in_artist() { - _artist.Albums.Add(_albums.First()); + var albumsToMonitor = new List{_albums.First().ForeignAlbumId}; - Subject.SetAlbumMonitoredStatus(_artist, new MonitoringOptions { Monitored = true }); + Subject.SetAlbumMonitoredStatus(_artist, new MonitoringOptions { Monitored = true, AlbumsToMonitor = albumsToMonitor }); Mocker.GetMock() .Verify(v => v.UpdateArtist(It.IsAny()), Times.Once());