Ejemplo n.º 1
0
 public void TestDailyForecastWeather() {
     var weatherProvider = new Gamoya.Common.Weather.WeatherProviders.ForecastIO.ForecastIOWeatherProvider(ApiKey);
     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 { }
     }
 }
Ejemplo n.º 2
0
 public void TestRawWeather() {
     var weatherProvider = new Gamoya.Common.Weather.WeatherProviders.ForecastIO.ForecastIOWeatherProvider(ApiKey);
     var rawWeather = weatherProvider.GetForecastIOWeather(50.00060000m, 6.91390000m, null, "ca", null);
     Assert.IsNotNull(rawWeather);
 }
Ejemplo n.º 3
0
 public void TestCurrentWeather() {
     var weatherProvider = new Gamoya.Common.Weather.WeatherProviders.ForecastIO.ForecastIOWeatherProvider(ApiKey);
     var weatherData = weatherProvider.GetCurrentWeather(50.00060000m, 6.91390000m);
     Assert.IsNotNull(weatherData);
 }