public async Task GetRecommendedRadio() { IEnumerable <IRadio> radios = await _user.GetRecommendedRadio(); Assert.IsNotNull(radios, nameof(radios)); Assert.That(radios.Count(), Is.GreaterThan(0), "Count"); var firstRadio = radios.First(); Assert.IsNotNull(firstRadio, nameof(firstRadio)); Assert.That(firstRadio.Id, Is.GreaterThan(0), nameof(firstRadio.Id)); Assert.IsNotNull(firstRadio.Title, nameof(firstRadio.Title)); }
public async Task GetRecommendedRadio() { _server.Content = base.GetServerResponse("recommended_radio"); IEnumerable <IRadio> radios = await _user.GetRecommendedRadio(); Assert.IsNotNull(radios, nameof(radios)); Assert.AreEqual(40, radios.Count(), "Count"); var firstRadio = radios.First(); Assert.IsNotNull(firstRadio, nameof(firstRadio)); Assert.AreEqual(531582301, firstRadio.Id, nameof(firstRadio.Id)); Assert.AreEqual("Arcade Mammoth", firstRadio.Title, nameof(firstRadio.Title)); }