1 instantiation of CustomParameterPolicy
Microsoft.AspNetCore.Routing.Tests (1)
DefaultParameterPolicyFactoryTest.cs (1)
140parameterPolicies: new[] { RoutePatternFactory.ParameterPolicy(new CustomParameterPolicy()), });
7 references to CustomParameterPolicy
Microsoft.AspNetCore.Routing.Tests (7)
DefaultParameterPolicyFactoryTest.cs (7)
146Assert.IsType<CustomParameterPolicy>(parameterPolicy); 196options.ConstraintMap.Add("customParameterPolicy", typeof(CustomParameterPolicy)); 199services.AddTransient<CustomParameterPolicy>(); 207Assert.IsType<CustomParameterPolicy>(parameterPolicy); 385options.ConstraintMap.Add("customParameterPolicy", typeof(CustomParameterPolicy)); 388services.AddTransient<CustomParameterPolicy>(); 396Assert.IsType<CustomParameterPolicy>(parameterPolicy);