public void GetWeatherDataTest_ExceptionThrownOnWrongWeatherDataType_Negative() { const string WRONG_DATA_TYPE = "WrongWeatherType"; Location location = new Location(2172797); WeatherDataServiceFactory factory = new WeatherDataServiceFactory(); IWeatherDataService service = factory.getWeatherDataService(WRONG_DATA_TYPE); }
public void GetWeatherDataTest_ValidDataObjectReturned_Positive() { Location location = new Location(2172797); WeatherDataServiceFactory factory = new WeatherDataServiceFactory(); IWeatherDataService service = factory.getWeatherDataService(WeatherDataServiceFactory.OPEN_WEATHER_MAP); WeatherData data = service.GetWeatherData(location); Assert.IsNotNull(data); }