Exemplo n.º 1
0
        public void should_have_request_locator()
        {
            var dictionary = new OwinRequestData(new RouteData(), new OwinRequestBody(new Environment()));

            dictionary.ValuesFor(OwinRequestData.Querystring).ShouldNotBeNull();
            dictionary.ValuesFor(OwinRequestData.FormPost).ShouldNotBeNull();
        }
 public void should_have_request_locator()
 {
     var environment = new Dictionary<string, object>();
     var headers = new Dictionary<string, string[]>();
     headers.Add(OwinConstants.ContentTypeHeader, new []{"text/xml"});
     environment[OwinConstants.RequestHeadersKey] = headers;
     environment[OwinConstants.RequestQueryStringKey] = "";
     new OwinRequestReader().Read(environment);
     var dictionary = new OwinRequestData(new RouteData(), environment, new StandInCurrentHttpRequest());
     dictionary.ValuesFor(OwinRequestData.Querystring).ShouldNotBeNull();
     dictionary.ValuesFor(OwinRequestData.FormPost).ShouldNotBeNull();
 }
        public void should_have_request_locator()
        {
            var environment = new Dictionary <string, object>();
            var headers     = new Dictionary <string, string[]>();

            headers.Add(OwinConstants.ContentTypeHeader, new [] { "text/xml" });
            environment[OwinConstants.RequestHeadersKey]     = headers;
            environment[OwinConstants.RequestQueryStringKey] = "";
            new OwinRequestReader().Read(environment);
            var dictionary = new OwinRequestData(new RouteData(), environment, new StandInCurrentHttpRequest());

            dictionary.ValuesFor(OwinRequestData.Querystring).ShouldNotBeNull();
            dictionary.ValuesFor(OwinRequestData.FormPost).ShouldNotBeNull();
        }
 public void should_have_request_locator()
 {
     var dictionary = new OwinRequestData(new RouteData(), new OwinRequestBody(new Environment()));
     dictionary.ValuesFor(OwinRequestData.Querystring).ShouldNotBeNull();
     dictionary.ValuesFor(OwinRequestData.FormPost).ShouldNotBeNull();
 }