public void SetUp()
 {
     worldWeatherOnlineService = new WorldWeatherOnlineService();
     xmlService = new XmlService();
     weatherString = File.ReadAllText(StaticPath.pastWeather);
     weatherDocument = xmlService.GetXmlDoc(weatherString);
 }
Esempio n. 2
0
 public MeteoService(IRepository<Location> locationRepository, IRepository<WeatherForecast> weatherForecastRepository)
 {
     _locationRepository = locationRepository;
     _weatherForecastRepository = weatherForecastRepository;
     _xmlService = new XmlService();
     _webClientService = new WebClientService();
     _openWeatherService = new OpenWeatherService();
     _worldWeatherOnlineService = new WorldWeatherOnlineService();
 }