Ejemplo n.º 1
0
 public FakeHttpContext(FakePrincipal principal, NameValueCollection formParams, NameValueCollection queryStringParams, HttpCookieCollection cookies, SessionStateItemCollection sessionItems)
 {
     _principal         = principal;
     _formParams        = formParams;
     _queryStringParams = queryStringParams;
     _cookies           = cookies;
     _sessionItems      = sessionItems;
 }
Ejemplo n.º 2
0
 public FakeHttpContext(FakePrincipal principal, NameValueCollection formParams, NameValueCollection queryStringParams, HttpCookieCollection cookies, SessionStateItemCollection sessionItems )
 {
     _principal = principal;
     _formParams = formParams;
     _queryStringParams = queryStringParams;
     _cookies = cookies;
     _sessionItems = sessionItems;
 }
Ejemplo n.º 3
0
 public FakeHttpContext(FakePrincipal principal, NameValueCollection formParams,
                        NameValueCollection queryStringParams, HttpCookieCollection cookies,
                        SessionStateItemCollection sessionItems, NameValueCollection headers)
 {
     _principal         = principal;
     _formParams        = formParams;
     _queryStringParams = queryStringParams;
     _cookies           = cookies;
     _sessionItems      = sessionItems;
     _headers           = headers;
     _response          = new FakeHttpResponse(_headers, _cookies);
 }
        public FakeHttpContext(string relativeUrl, FakePrincipal principal, NameValueCollection formParams, NameValueCollection queryStringParams, HttpCookieCollection cookies, SessionStateItemCollection sessionItems)
        {
            _relativeUrl       = relativeUrl;
            _principal         = principal;
            _formParams        = formParams;
            _queryStringParams = queryStringParams;
            _cookies           = cookies;
            _sessionItems      = sessionItems;
            _items             = new HybridDictionary();

            _httpRequest  = new FakeHttpRequest(_relativeUrl, _formParams, _queryStringParams, _cookies);
            _httpResponse = new FakeHttpResponse();
        }
Ejemplo n.º 5
0
        public FakeHttpContext(string relativeUrl, FakePrincipal principal, NameValueCollection formParams, NameValueCollection queryStringParams, HttpCookieCollection cookies, SessionStateItemCollection sessionItems )
        {
            _relativeUrl = relativeUrl;
            _principal = principal;
            _formParams = formParams;
            _queryStringParams = queryStringParams;
            _cookies = cookies;
            _sessionItems = sessionItems;
            _items = new HybridDictionary();

            _httpRequest = new FakeHttpRequest(_relativeUrl, _formParams, _queryStringParams, _cookies);
            _httpResponse = new FakeHttpResponse();
        }