Exemplo n.º 1
0
        public async Task GetRecommendedArtists()
        {
            IEnumerable <IArtist> artists = await _user.GetRecommendedArtists();


            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));
        }
Exemplo n.º 2
0
        public async Task GetRecommendedArtists()
        {
            _server.Content = base.GetServerResponse("recommended_artists");


            IEnumerable <IArtist> artists = await _user.GetRecommendedArtists();


            Assert.IsNotNull(artists, nameof(artists));
            Assert.AreEqual(30, artists.Count(), "Count");

            var firstArtist = artists.First();

            Assert.IsNotNull(firstArtist, nameof(firstArtist));
            Assert.AreEqual(1353625, firstArtist.Id, nameof(firstArtist.Id));
            Assert.AreEqual("R3hab", firstArtist.Name, nameof(firstArtist.Name));
        }