public DarkSkyWeatherService(
     DarkSkySettings _darkSkySettings,
     IHttpClient _httpClient,
     IHttpResponseMapper _httpMapper,
     IWeatherCache _weatherCache
     )
 {
     this._darkSkySettings = _darkSkySettings;
     this._httpClient      = _httpClient;
     this._httpMapper      = _httpMapper;
     this._weatherCache    = _weatherCache;
 }
Beispiel #2
0
        public BuStarRepository(string connectionString,
                                string weatherApiKey,
                                IDataParseService dataParseServiceParam,
                                IDateTimeService dateTimeServiceParam,
                                IDataCache dataCacheParam,
                                IWeatherCache weatherCacheParam)
        {
            repository         = new LiteRepository(connectionString);
            this.weatherApiKey = weatherApiKey;

            this.dataParseService = dataParseServiceParam;
            this.dateTimeService  = dateTimeServiceParam;
            this.dataCache        = dataCacheParam;
            this.weatherCache     = weatherCacheParam;
        }
Beispiel #3
0
 public WeatherService(IWeatherCache cache, IOpenWeatherMapClient client, AppConfig config)
 {
     this.m_config = config;
     this.m_client = client;
     this.m_cache  = cache;
 }