19 references to NullHandler
Microsoft.AspNetCore.Routing.Tests (19)
RequestDelegateRouteBuilderExtensionsTest.cs (19)
23{ b => { b.MapRoute("api/{id}", NullHandler); }, null }, 26{ b => { b.MapDelete("api/{id}", NullHandler); }, c => { c.Request.Method = "DELETE"; } }, 28{ b => { b.MapGet("api/{id}", NullHandler); }, c => { c.Request.Method = "GET"; } }, 30{ b => { b.MapPost("api/{id}", NullHandler); }, c => { c.Request.Method = "POST"; } }, 32{ b => { b.MapPut("api/{id}", NullHandler); }, c => { c.Request.Method = "PUT"; } }, 35{ b => { b.MapVerb("PUT", "api/{id}", NullHandler); }, c => { c.Request.Method = "PUT"; } }, 62Assert.Same(NullHandler, context.Handler); 71{ b => { b.MapRoute("api/{id}/extra", NullHandler); }, null }, 74{ b => { b.MapDelete("api/{id}", NullHandler); }, c => { c.Request.Method = "GET"; } }, 76{ b => { b.MapDelete("api/{id}/extra", NullHandler); }, c => { c.Request.Method = "DELETE"; } }, 78{ b => { b.MapGet("api/{id}", NullHandler); }, c => { c.Request.Method = "PUT"; } }, 80{ b => { b.MapGet("api/{id}/extra", NullHandler); }, c => { c.Request.Method = "GET"; } }, 82{ b => { b.MapPost("api/{id}", NullHandler); }, c => { c.Request.Method = "MEH"; } }, 84{ b => { b.MapPost("api/{id}/extra", NullHandler); }, c => { c.Request.Method = "POST"; } }, 86{ b => { b.MapPut("api/{id}", NullHandler); }, c => { c.Request.Method = "BLEH"; } }, 88{ b => { b.MapPut("api/{id}/extra", NullHandler); }, c => { c.Request.Method = "PUT"; } }, 91{ b => { b.MapVerb("PUT", "api/{id}", NullHandler); }, c => { c.Request.Method = "POST"; } }, 93{ b => { b.MapVerb("PUT", "api/{id}/extra", NullHandler); }, c => { c.Request.Method = "PUT"; } }, 146.Returns(NullHandler);