Fixed: Import List Tests

pull/6/head
Qstick 7 years ago
parent 37d1ed4a48
commit 6c20832c7f

@ -38,7 +38,7 @@ namespace NzbDrone.Core.Test.ImportListTests
Mocker.GetMock<IImportListFactory>() Mocker.GetMock<IImportListFactory>()
.Setup(v => v.Get(It.IsAny<int>())) .Setup(v => v.Get(It.IsAny<int>()))
.Returns(new ImportListDefinition()); .Returns(new ImportListDefinition{ ShouldMonitor = true });
Mocker.GetMock<IFetchAndParseImportList>() Mocker.GetMock<IFetchAndParseImportList>()
.Setup(v => v.Fetch()) .Setup(v => v.Fetch())

@ -62,9 +62,9 @@ namespace NzbDrone.Core.Test.MusicTests.AlbumMonitoredServiceTests
[Test] [Test]
public void should_be_able_to_monitor_albums_when_passed_in_artist() public void should_be_able_to_monitor_albums_when_passed_in_artist()
{ {
_artist.Albums.Add(_albums.First()); var albumsToMonitor = new List<string>{_albums.First().ForeignAlbumId};
Subject.SetAlbumMonitoredStatus(_artist, new MonitoringOptions { Monitored = true }); Subject.SetAlbumMonitoredStatus(_artist, new MonitoringOptions { Monitored = true, AlbumsToMonitor = albumsToMonitor });
Mocker.GetMock<IArtistService>() Mocker.GetMock<IArtistService>()
.Verify(v => v.UpdateArtist(It.IsAny<Artist>()), Times.Once()); .Verify(v => v.UpdateArtist(It.IsAny<Artist>()), Times.Once());

Loading…
Cancel
Save