public void Set(OpenWeatherMapForecast forecast)
        {
            if (forecast == null)
            {
                throw new ArgumentNullException(nameof(forecast));
            }

            Forecast = forecast;
        }
Exemplo n.º 2
0
 public async Task I_have_asked_the_forecast()
 {
     Forecast = await OpenWeatherMapService.GetWeatherForecastAsync(CityID).ConfigureAwait(false);
     Assert.NotNull(Forecast);
 }