Fixed: Correctly page through Spotify followed artists

This commit is contained in:
ta264
2019-09-24 21:04:46 +01:00
parent f4e4bae465
commit ea8d19a513
3 changed files with 9 additions and 8 deletions
@@ -132,8 +132,8 @@ namespace NzbDrone.Core.Test.ImportListTests
Mocker.GetMock<ISpotifyProxy>()
.Setup(x => x.GetNextPage(It.IsAny<SpotifyFollowedArtists>(),
It.IsAny<SpotifyWebAPI>(),
It.IsAny<CursorPaging<FullArtist>>()))
.Returns(default(CursorPaging<FullArtist>));
It.IsAny<FollowedArtists>()))
.Returns(default(FollowedArtists));
var result = Subject.Fetch(api);
@@ -142,7 +142,7 @@ namespace NzbDrone.Core.Test.ImportListTests
Mocker.GetMock<ISpotifyProxy>()
.Verify(v => v.GetNextPage(It.IsAny<SpotifyFollowedArtists>(),
It.IsAny<SpotifyWebAPI>(),
It.IsAny<CursorPaging<FullArtist>>()),
It.IsAny<FollowedArtists>()),
Times.Once());
}