Exemplo n.º 1
0
        public async Task Get()
        {
            string url    = "&q=london&units=metric";
            var    result = await _client.Get <CurrentWeatherForecast>(url);

            Assert.IsNotNull(result);
        }
 public async Task <CurrentWeatherForecast> GetCurrentWeatherForecast(string city)
 {
     return(await _weatherForecastClient.Get <CurrentWeatherForecast>($"&q={city}&units=metric"));
 }