OwinEnvironmentTests.cs (15)
36Assert.Equal("SomeMethod", Get<string>(env, "owin.RequestMethod"));
38Assert.Equal("Foo", Get<ClaimsPrincipal>(env, "server.User").Identity.AuthenticationType);
39Assert.Equal("Foo", Get<ClaimsPrincipal>(env, "owin.RequestUser").Identity.AuthenticationType);
40Assert.Same(Stream.Null, Get<Stream>(env, "owin.RequestBody"));
41var requestHeaders = Get<IDictionary<string, string[]>>(env, "owin.RequestHeaders");
44Assert.Equal("/path", Get<string>(env, "owin.RequestPath"));
45Assert.Equal("/pathBase", Get<string>(env, "owin.RequestPathBase"));
46Assert.Equal("http/1.0", Get<string>(env, "owin.RequestProtocol"));
47Assert.Equal("key=value", Get<string>(env, "owin.RequestQueryString"));
48Assert.Equal("http", Get<string>(env, "owin.RequestScheme"));
50Assert.Same(Stream.Null, Get<Stream>(env, "owin.ResponseBody"));
51var responseHeaders = Get<IDictionary<string, string[]>>(env, "owin.ResponseHeaders");
54Assert.Equal(201, Get<int>(env, "owin.ResponseStatusCode"));
70var requestHeaders = Get<IDictionary<string, string[]>>(env, "owin.RequestHeaders");
79var responseHeaders = Get<IDictionary<string, string[]>>(env, "owin.ResponseHeaders");