public WeatherGrabberAppService( IGismeteoHttpClient httpClient, IWeatherGrabberService weatherGrabberService, ICityService cityService) { _httpClient = httpClient ?? throw new ArgumentNullException(nameof(httpClient)); _weatherGrabberService = weatherGrabberService ?? throw new ArgumentNullException(nameof(weatherGrabberService)); _cityService = cityService ?? throw new ArgumentNullException(nameof(cityService)); }
public IndexModel(IWeatherGrabberService weatherService) { _weatherService = weatherService; Cities = new List <CityWeatherInfoViewModel>(); }