Ejemplo n.º 1
0
 public IISHttpRequest(IISHttpContext context) : base(context)
 {
 }
Ejemplo n.º 2
0
 public IISHttpResponse(IISHttpContext context) : base(context)
 {
 }
Ejemplo n.º 3
0
 public                              IISHttpServerUtility(IISHttpContext context) : base(context)    {}
Ejemplo n.º 4
0
 public void When_constructing_an_IISHttpContext_using_the_default_constructor_the_IISHttpContext_object_should_create_a_default_IISHttpApplication_class_instance_for_the_ApplicationInstance_property()
 {
     var context = new IISHttpContext(this.httpContext);
     Assert.IsNotNull(context.ApplicationInstance);
     Assert.AreEqual(typeof(IISHttpApplication), context.ApplicationInstance.GetType());
 }
Ejemplo n.º 5
0
 public void When_constructing_an_IISHttpContext_using_the_default_constructor_the_IISHttpContext_object_should_create_a_default_IISHttpServerUtility_class_instance_for_the_Server_property()
 {
     var context = new IISHttpContext(this.httpContext);
     Assert.IsNotNull(context.Server);
     Assert.AreEqual(typeof(IISHttpServerUtility), context.Server.GetType());
 }
Ejemplo n.º 6
0
 public void When_constructing_an_IISHttpContext_the_context_argument_must_not_be_null()
 {
     var context = new IISHttpContext(null);
 }
Ejemplo n.º 7
0
 public void When_getting_the_User_from_the_IISHttpContext_instance_our_mockHostPrincipal_should_be_returned()
 {
     var context =   new IISHttpContext
                     (
                         this.httpContext,
                         hostContext=>this.mockHttpApplication.Object,
                         hostContext=>this.mockHttpRequest.Object,
                         hostContext=>this.mockHttpServer.Object,
                         hostContext=>this.mockHttpResponse.Object,
                         user=>this.mockHostPrincipal.Object,
                         ()=>this.mockHostHandler.Object
                     );
     Assert.AreEqual(this.mockHostPrincipal.Object, context.User);
 }
Ejemplo n.º 8
0
 public IISHttpServerUtility(IISHttpContext context) : base(context)
 {
 }
Ejemplo n.º 9
0
 public                              IISHttpRequest(IISHttpContext context) : base(context) {}
Ejemplo n.º 10
0
 public                              IISHttpResponse(IISHttpContext context) : base(context) {}