Esempio n. 1
0
        /// <summary>
        /// Creates a new mock MockHttpWebRequest.
        /// </summary>
        ///
        /// <param name="uri">
        /// URI of the document.
        /// </param>
        ///
        /// <returns>
        /// The new MockHttpWebRequest.
        /// </returns>

        public static MockHttpWebRequest Create(Uri uri)
        {
            MockHttpWebRequest request = new MockHttpWebRequest();

            request._RequestUri = uri;
            return(request);
        }
Esempio n. 2
0
        public IHttpWebRequest Create(Uri url)
        {
            var req = MockHttpWebRequest.Create(url);

            req.CharacterSet   = CharacterSet;
            req.ResponseStream = ResponseStream;
            req.ResponseTime   = ResponseTime;
            return(req);
        }
Esempio n. 3
0
        /// <summary>
        /// Creates a new mock MockHttpWebRequest.
        /// </summary>
        ///
        /// <param name="uri">
        /// URI of the document.
        /// </param>
        ///
        /// <returns>
        /// The new MockHttpWebRequest.
        /// </returns>

        public static MockHttpWebRequest Create(Uri uri)
        {
            MockHttpWebRequest request = new MockHttpWebRequest();
            request._RequestUri = uri;
            return request;
        }