/// <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); }
public IHttpWebRequest Create(Uri url) { var req = MockHttpWebRequest.Create(url); req.CharacterSet = CharacterSet; req.ResponseStream = ResponseStream; req.ResponseTime = ResponseTime; return(req); }
/// <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; }