예제 #1
0
        public void IRestResponseTest()
        {
            var request  = new RequestObject("http://api.openweathermap.org/data/2.5/weather?q=wentzville&appid=0ee6f4c510be459cbe54d01cf30b0366", Method.GET);
            var response = request.ExecuteAndGetIRestResponse();

            Assert.IsTrue(response.Content.Contains("Wentzville"), "API response content didn't contain Wentzville.");
        }