コード例 #1
0
        public void Should_Build_Get()
        {
            var parsed = Parser.ParseRawRequest(FakeRawRequests.GetWithoutQueryString);
            var req    = HttpWebRequestBuilder.InitializeWebRequest(parsed);

            Assert.AreEqual("System.Net.HttpWebRequest", req.GetType().ToString());
        }
コード例 #2
0
        public IHttpWebRequest BuildRequest(ParsedHttpRequest parsed)
        {
            var request = HttpWebRequestBuilder.InitializeWebRequest(parsed);

            return(new HttpWebRequestWrapper(request));
        }