Example #1
0
        public async Task WeatherService_WhenCalled_ReturnsData()
        {
            var cityId     = 2172797;
            var appId      = "aa69195559bd4f88d79f9aadeb77a8f6";
            var serviceUrl = "http://samples.openweathermap.org";
            var weather    = await weatherRepository.GetWeatherForCityAsync(cityId, appId, serviceUrl);

            Assert.That(weather, Is.Not.Null);
        }
Example #2
0
 public async Task <WeatherDetails> GetWeatherForCityAsync(int cityid, string apiKey, string uriWeather)
 {
     return(await _weatherRepository.GetWeatherForCityAsync(cityid, apiKey, uriWeather));
 }