Exemple #1
0
 public MockHttpContext()
 {
     cookies       = new HttpCookieCollection();
     this.request  = new MockRequest(cookies);
     this.response = new MockResponse(cookies);
 }
 public MockHttpContext()
 {
     Cookies      = new HttpCookieCollection();
     MockRequest  = new MockRequest(Cookies);
     MockResponse = new MockResponse(Cookies);
 }
Exemple #3
0
 public HttpMockContext()
 {
     _cookies  = new HttpCookieCollection();
     _request  = new MockRequest(_cookies);
     _response = new MockResponse(_cookies);
 }
Exemple #4
0
 public MockHttpContext()                        // constructor that initializes objects needed
 {
     cookies       = new HttpCookieCollection(); // initializes cookie collection
     this.request  = new MockRequest(cookies);   // collection of cookies is injected
     this.response = new MockResponse(cookies);
 }