Ejemplo n.º 1
0
 public MockHttpContext()
 {
     this.HttpCookieCollection = new HttpCookieCollection();
     this.MockRequest          = new MockRequest(HttpCookieCollection);
     this.MockResponse         = new MockResponse(HttpCookieCollection);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 4
0
 public MockHttpContext() //constructor to inicialize everything we need
 {
     cookies       = new HttpCookieCollection();
     this.request  = new MockRequest(cookies);
     this.response = new MockResponse(cookies);
 }
Ejemplo n.º 5
0
 public MockHttpContext()
 {
     _cookies  = new HttpCookieCollection();
     _response = new MockResponse(_cookies);
     _request  = new MockRequest(_cookies);
 }
Ejemplo n.º 6
0
 public MockHttpContext()
 {
     Cookies      = new HttpCookieCollection();
     MockRequest  = new MockRequest(Cookies);
     MockResponse = new MockResponse(Cookies);
 }
Ejemplo n.º 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);
 }