public void GetResponseByName() { string city = "Brest"; var content = singleService.GetCurrentWeatherByName(city); ContentReader cr = new ContentReader(content); Assert.That(cr.GetId(), Is.EqualTo("629634"), "That is another city's id"); Assert.That(cr.GetMainTemp(), Is.GreaterThan(0), "It's unexpected cold today as for Brest"); }
public void GetResponseById() { int id = 629634; var content = singleService.GetCurrentWeatherById(id); ContentReader cr = new ContentReader(content); Assert.That(cr.GetName(), Is.EqualTo("Brest"), "That is another city"); Assert.That(cr.GetMainTemp(), Is.GreaterThan(0), "It's unexpected cold today as for Brest"); }