public PresentationService()
 {
     var applicationRootPath = System.Web.Hosting.HostingEnvironment.MapPath("/");
     var keyPath = System.Web.Hosting.HostingEnvironment.MapPath("/env/openWeatherMapKey.txt");
     _settingsService = new SettingsService(applicationRootPath, keyPath);
     context = HttpContext.Current;
     Weather = new PresentationWeather(context, _settingsService);
 }
Beispiel #2
0
 public BaseService(SettingsService settingsService)
 {
     SettingsService = settingsService;
     Settings = new Settings { KeyPath = settingsService.GetKeyPath(), };
 }
Beispiel #3
0
 public WeatherService(SettingsService settingsService) : base(settingsService)
 {
 }
Beispiel #4
0
 public BaseService(SettingsService settingsService)
 {
     SettingsService = settingsService;
     Settings        = new Settings(settingsService.GetKeyPath(), settingsService.GetConfigurationPath());
 }
 public PresentationWeather(HttpContext context, SettingsService settingsService)
 {
     this.context = context;
     _weatherService = new WeatherService(settingsService);
 }