public CityWeatherModel(ICityWeatherInfo info, string originalName) { if (info == null) throw new ArgumentNullException(nameof(info)); _info = info; _weather = _info.WeatherFromProvider.Select(t => new WeatherFromProviderModel(t)).ToArray(); OriginalName = originalName; }
public CityWeatherInfoCashValue(ICityWeatherInfo weather) { if (weather == null) { throw new ArgumentNullException(nameof(weather)); } Weather = weather; TimeStamp = TimeProvider.Current.UtcNow; }
public CityWeatherModel(ICityWeatherInfo info, string originalName) { if (info == null) { throw new ArgumentNullException(nameof(info)); } _info = info; _weather = _info.WeatherFromProvider.Select(t => new WeatherFromProviderModel(t)).ToArray(); OriginalName = originalName; }
public CityWeatherInfoCashValue(ICityWeatherInfo weather) { if (weather == null) throw new ArgumentNullException(nameof(weather)); Weather = weather; TimeStamp = TimeProvider.Current.UtcNow; }