예제 #1
0
        public void SendGetRequest_MockRequest_MethodIsGet()
        {
            // Arrange
            const string method     = "GET";
            const string uri        = "http://foo.bar/";
            var          queryItems = new Dictionary <string, string>();

            var api = new WebRequestRestApiUnderTest();

            // Act
            api.SendGetRequest(uri, queryItems);


            // Assert
            Assert.AreEqual(method, api.MockWebRequest.Object.Method);
        }
        public void SendGetRequest_MockRequest_MethodIsGet()
        {
            // Arrange
            const string method = "GET";
            const string uri = "http://foo.bar/";
            var queryItems = new SortedDictionary<string, string>();

            var api = new WebRequestRestApiUnderTest();

            // Act
            api.SendGetRequest(uri, queryItems);
            

            // Assert
            Assert.AreEqual(method, api.MockWebRequest.Object.Method);
        }