public DarkSkyProvider(IDarkSkyClient client)
 {
     _client = client;
 }
Example #2
0
 public WeatherService(IYahooWeatherClient yahooWeatherClient, IDarkSkyClient darkSkyClient)
 {
     _yahooWeatherClient = yahooWeatherClient;
     _darkSkyClient      = darkSkyClient;
 }
Example #3
0
 /// <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));
 }