Exemplo n.º 1
0
 public void TestDailyForecastWeather() {
     var weatherProvider = new Gamoya.Common.Weather.WeatherProviders.Yahoo.YahooWeatherProvider();
     if (weatherProvider.Features.DailyForecastWeather) {
         var forecasts = weatherProvider.GetDailyForecastWeather(50.00060000m, 6.91390000m);
         Assert.IsNotNull(forecasts);
     } else {
         try {
             var forecasts = weatherProvider.GetDailyForecastWeather(50.00060000m, 6.91390000m);
             Assert.Fail();
         } catch { }
     }
 }
Exemplo n.º 2
0
 public void TestCurrentWeather() {
     var weatherProvider = new Gamoya.Common.Weather.WeatherProviders.Yahoo.YahooWeatherProvider();
     var weatherData = weatherProvider.GetCurrentWeather(50.00060000m, 6.91390000m);
     Assert.IsNotNull(weatherData);
 }