예제 #1
0
        public async Task CurrentWeather_MadridCityCodeProvided_ShouldReturnWeather()
        {
            var provider             = new CurrentWeatherProvider();
            var currentMadridWeather = await provider.FindForCityCodeAsync("6359304");

            Assert.IsNotNull(currentMadridWeather);
        }
예제 #2
0
        public async Task CurrenWeather_NoCityCodeProvided_ShouldReturnNull()
        {
            var provider       = new CurrentWeatherProvider();
            var currentWeather = await provider.FindForCityCodeAsync(string.Empty);

            Assert.IsNull(currentWeather);
        }