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 { } } }
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); }
public void TestCurrentWeather() { var weatherProvider = new Gamoya.Common.Weather.WeatherProviders.ForecastIO.ForecastIOWeatherProvider(ApiKey); var weatherData = weatherProvider.GetCurrentWeather(50.00060000m, 6.91390000m); Assert.IsNotNull(weatherData); }