Esempio n. 1
0
 public FakeHttpContext(string url, FakePrincipal principal, NameValueCollection formParams, NameValueCollection queryStringParams, IHttpCookieCollection cookies, Dictionary <string, object> sessionItems)
 {
     _url               = url;
     _principal         = principal;
     _formParams        = formParams;
     _queryStringParams = queryStringParams;
     _cookies           = cookies;
     _session           = new FakeHttpSessionState(sessionItems);
     _request           = new FakeHttpRequest(_url, _formParams, _queryStringParams, _cookies);
     _server            = new FakeHttpServerUtility();
     _items             = new Dictionary <string, object>();
 }
Esempio n. 2
0
 public FakeHttpContext(string url, FakePrincipal principal, NameValueCollection formParams, NameValueCollection queryStringParams, IHttpCookieCollection cookies, Dictionary<string,object> sessionItems)
 {
     _url = url;
     _principal = principal;
     _formParams = formParams;
     _queryStringParams = queryStringParams;
     _cookies = cookies;
     _session = new FakeHttpSessionState(sessionItems);
     _request = new FakeHttpRequest(_url, _formParams, _queryStringParams, _cookies);
     _server = new FakeHttpServerUtility();
     _items = new Dictionary<string, object>();
 }