More Work on Album Filtering per Artist

This commit is contained in:
Qstick
2017-10-07 17:37:18 -04:00
parent 6a4fb9adf3
commit f812302aa5
13 changed files with 43 additions and 54 deletions
@@ -38,14 +38,14 @@ namespace NzbDrone.Core.Test.MusicTests
.Returns(_artist);
Mocker.GetMock<IProvideArtistInfo>()
.Setup(s => s.GetArtistInfo(It.IsAny<string>()))
.Callback<string>(p => { throw new ArtistNotFoundException(p); });
.Setup(s => s.GetArtistInfo(It.IsAny<string>(), It.IsAny<List<string>>(), It.IsAny<List<string>>()))
.Callback(() => { throw new ArtistNotFoundException(_artist.ForeignArtistId); });
}
private void GivenNewArtistInfo(Artist artist)
{
Mocker.GetMock<IProvideArtistInfo>()
.Setup(s => s.GetArtistInfo(_artist.ForeignArtistId))
.Setup(s => s.GetArtistInfo(_artist.ForeignArtistId, _artist.PrimaryAlbumTypes, _artist.SecondaryAlbumTypes))
.Returns(new Tuple<Artist, List<Album>>(artist, new List<Album>()));
}