public void TestGetWeather() { string weatherxml = globalWeatherServiceAgent.GetWeather("Sydney Airport", "Australia"); Assert.IsNotNull(weatherxml); Assert.IsTrue(weatherxml.Trim().Length > 0, "The message length must be greater than zero"); Assert.IsTrue(weatherxml != "Data Not Found"); }
public string GetWeather(string strCityName, string strcountryName) { mLog.Info("Calling GlobalWeatherServiceClient.GetWeather..."); try { string strWeather = globalWeatherServiceAgent.GetWeather(strCityName, strcountryName); //TODO: Populate data with Weather model object when the service is ready to functioning return(strWeather); } catch (Exception ex) { mLog.Error(ex.InnerException); throw ex; } }