public void Set(OpenWeatherMapForecast forecast) { if (forecast == null) { throw new ArgumentNullException(nameof(forecast)); } Forecast = forecast; }
public async Task I_have_asked_the_forecast() { Forecast = await OpenWeatherMapService.GetWeatherForecastAsync(CityID).ConfigureAwait(false); Assert.NotNull(Forecast); }