예제 #1
0
 public MockHttpContext()
 {
     this.HttpCookieCollection = new HttpCookieCollection();
     this.MockRequest          = new MockRequest(HttpCookieCollection);
     this.MockResponse         = new MockResponse(HttpCookieCollection);
 }
예제 #2
0
 public MockHttpContext()
 {
     cookies       = new HttpCookieCollection();
     this.request  = new MockRequest(cookies);
     this.response = new MockResponse(cookies);
 }
 public MockHttpContext()
 {
     cookies       = new HttpCookieCollection(); //instantiate here instead of within request/response to allow same cookie to be used for both
     this.request  = new MockRequest(cookies);
     this.response = new MockResponse(cookies);
 }
예제 #4
0
 public MockHttpContext() //constructor to inicialize everything we need
 {
     cookies       = new HttpCookieCollection();
     this.request  = new MockRequest(cookies);
     this.response = new MockResponse(cookies);
 }
예제 #5
0
 public MockHttpContext()
 {
     _cookies  = new HttpCookieCollection();
     _response = new MockResponse(_cookies);
     _request  = new MockRequest(_cookies);
 }
예제 #6
0
 public MockHttpContext()
 {
     Cookies      = new HttpCookieCollection();
     MockRequest  = new MockRequest(Cookies);
     MockResponse = new MockResponse(Cookies);
 }
예제 #7
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);
 }