Exemplo n.º 1
0
        public void TestGetWeather_It_Shoud_Throw_Exception_If_Country_Is_Unknown()
        {
            //Setup
            WebServicexGlobalWeatherProvider _provider = new WebServicexGlobalWeatherProvider();
            City city = new City {
                Country = "Unknown", Name = "Sydney"
            };

            //Act
            var result = _provider.GetWeather(city);
        }
Exemplo n.º 2
0
        public void TestGetWeather_It_Shoud_Return_Weather_Parameters()
        {
            //Setup
            WebServicexGlobalWeatherProvider _provider = new WebServicexGlobalWeatherProvider();
            City city = new City {
                Country = "Australia", Name = "Sydney"
            };

            //Act
            var result = _provider.GetWeather(city);

            //Assert
            Assert.AreNotEqual(null, result);
        }