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); }
public PresentationService() { var applicationRootPath = System.Web.Hosting.HostingEnvironment.MapPath("/"); var keyPath = System.Web.Hosting.HostingEnvironment.MapPath("/env/openWeatherMapKey.txt"); var configurationPath = System.Web.Hosting.HostingEnvironment.MapPath("/env/WeatherInfoConnectionString.txt"); _settingsService = new SettingsService(applicationRootPath, keyPath, configurationPath); context = HttpContext.Current; Location = new PresentationLocation(context, _settingsService); Weather = new PresentationWeather(context, _settingsService); }