예제 #1
0
        public async Task SearchLocationAsync_ReturnLimaCity()
        {
            var weatherService = new WeatherForecastService(_settings, _httpClient);

            var weatherResponse = await weatherService.SearchLocationAsync("Lima");

            var weatherList = (List <Weather>)weatherResponse.Data;

            Assert.Equal("Lima", weatherList[0].Title);
        }