public void GetWeatherNowTest() { WeatherWebRetrieverService webRetrieverService = new WeatherWebRetrieverService(); webRetrieverService.GetWeatherDataNow("9000", "BE");//.CreateReport(); Assert.IsNotNull(webRetrieverService.GetWeatherDataNow("9000", "BE")); }
public void GetWeatherBulkNowTest() { WeatherWebRetrieverService webRetrieverService = new WeatherWebRetrieverService(); WeatherStatics statics = webRetrieverService.GetWeatherBulkNow(CityRepo.Cities().Take(5).ToList(), "BE"); // statics.CreateReport(); Assert.AreEqual(4, statics.AllWeatherDatas().Count); }