Ejemplo n.º 1
0
        public void NotFoundCommand_Run_Sets404()
        {
            var command = new NotFoundCommand();
            var result = command.Run(Substitute.For<HttpRequestBase>());

            result.HttpStatusCode.Should().Be(HttpStatusCode.NotFound);
        }
Ejemplo n.º 2
0
        public void NotFoundCommand_Run_Sets404()
        {
            var command = new NotFoundCommand();
            var result  = command.Run(Substitute.For <HttpRequestBase>());

            result.HttpStatusCode.Should().Be(HttpStatusCode.NotFound);
        }
Ejemplo n.º 3
0
        public void NotFoundCommand_Run_Sets404()
        {
            var command = new NotFoundCommand();
            var result = command.Run(new HttpRequestData("GET", 
                new Uri("http://localhost/Saml2AuthenticationModule/NonExistingPath")));

            result.HttpStatusCode.Should().Be(HttpStatusCode.NotFound);
        }
Ejemplo n.º 4
0
        public void NotFoundCommand_Run_Sets404()
        {
            var command = new NotFoundCommand();
            var result  = command.Run(new HttpRequestData("GET",
                                                          new Uri("http://localhost/Saml2AuthenticationModule/NonExistingPath")));

            result.HttpStatusCode.Should().Be(HttpStatusCode.NotFound);
        }