6 references to CustomRouteConstraint
Microsoft.AspNetCore.Routing.Tests (6)
DefaultInlineConstraintResolverTest.cs (6)
260routeOptions.ConstraintMap.Add("custom", typeof(CustomRouteConstraint)); 267Assert.IsType<CustomRouteConstraint>(constraint); 275routeOptions.SetParameterPolicy("custom", typeof(CustomRouteConstraint)); 282Assert.IsType<CustomRouteConstraint>(constraint); 300routeOptions.SetParameterPolicy<CustomRouteConstraint>("custom"); 307Assert.IsType<CustomRouteConstraint>(constraint);