コード例 #1
0
ファイル: FakeHttpContext.cs プロジェクト: saber-wang/nlite
 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>();
 }
コード例 #2
0
ファイル: FakeHttpContext.cs プロジェクト: netcasewqs/nlite
 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>();
 }