public async Task GetCommonGenre()
        {
            var actual = (List <IGenre>) await _genre.GetCommonGenre();

            Assert.AreEqual(22, actual.Count);

            var actualPop = actual[1];

            Assert.AreEqual(132, actualPop.Id);
            Assert.AreEqual("Pop", actualPop.Name);
        }
Beispiel #2
0
        public async Task GetCommonGenre()
        {
            _server.Content = base.GetServerResponse("GetCommonGenre");

            IEnumerable <IGenre> actual = await _genre.GetCommonGenre();

            var genres = actual.ToList();

            Assert.AreEqual(22, genres.Count, "Count");

            var secondGenre = genres[1];

            Assert.AreEqual(132, secondGenre.Id, nameof(secondGenre.Id));
            Assert.AreEqual("Pop", secondGenre.Name, nameof(secondGenre.Name));
        }