public DarkSkyProvider(IDarkSkyClient client) { _client = client; }
public WeatherService(IYahooWeatherClient yahooWeatherClient, IDarkSkyClient darkSkyClient) { _yahooWeatherClient = yahooWeatherClient; _darkSkyClient = darkSkyClient; }
/// <summary> /// Initializes a new instance of the <see cref="DarkSkyForecastService"/> class. /// </summary> /// <param name="darkSkyClient">The dark sky client.</param> /// <exception cref="ArgumentNullException">darkSkyClient</exception> public DarkSkyForecastService(IDarkSkyClient darkSkyClient, IDomainModelMapper mapper) { this.darkSkyClient = darkSkyClient ?? throw new ArgumentNullException(nameof(darkSkyClient)); this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }