public async Task GetFavouriteArtists() { IEnumerable <IArtist> artists = await _user.GetFavouriteArtists(); Assert.IsNotNull(artists, nameof(artists)); Assert.That(artists.Count(), Is.GreaterThan(0), "Count"); var firstArtist = artists.First(); Assert.IsNotNull(firstArtist, nameof(firstArtist)); Assert.That(firstArtist.Id, Is.GreaterThan(0), nameof(firstArtist.Id)); Assert.IsNotNull(firstArtist.Name, nameof(firstArtist.Name)); }
public async Task GetFavouriteArtists() { _server.Content = base.GetServerResponse("favourite_artists"); IEnumerable <IArtist> artists = await _user.GetFavouriteArtists(); Assert.IsNotNull(artists, nameof(artists)); Assert.AreEqual(7, artists.Count(), "Count"); var firstArtist = artists.First(); Assert.IsNotNull(firstArtist, nameof(firstArtist)); Assert.AreEqual(310557, firstArtist.Id, nameof(firstArtist.Id)); Assert.AreEqual("Steve Aoki", firstArtist.Name, nameof(firstArtist.Name)); }