public void NotFoundCommand_Run_Sets404() { var command = new NotFoundCommand(); var result = command.Run(Substitute.For<HttpRequestBase>()); result.HttpStatusCode.Should().Be(HttpStatusCode.NotFound); }
public void NotFoundCommand_Run_Sets404() { var command = new NotFoundCommand(); var result = command.Run(Substitute.For <HttpRequestBase>()); result.HttpStatusCode.Should().Be(HttpStatusCode.NotFound); }
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); }