1 write to ParameterPolicy
Microsoft.AspNetCore.Routing (1)
Patterns\RoutePatternParameterPolicyReference.cs (1)
26
ParameterPolicy
= parameterPolicy;
22 references to ParameterPolicy
Microsoft.AspNetCore.Routing (4)
ParameterPolicyFactory.cs (3)
40
Debug.Assert(reference.
ParameterPolicy
!= null || reference.Content != null);
42
if (reference.
ParameterPolicy
!= null)
44
return Create(parameter, reference.
ParameterPolicy
);
Patterns\RoutePatternParameterPart.cs (1)
102
builder.Append(constraint.
ParameterPolicy
);
Microsoft.AspNetCore.Routing.Tests (18)
Patterns\RoutePatternFactoryTest.cs (16)
156
c => Assert.IsType<RegexRouteConstraint>(c.
ParameterPolicy
),
160
c => Assert.IsType<RegexRouteConstraint>(c.
ParameterPolicy
));
169
c => Assert.IsType<RegexRouteConstraint>(c.
ParameterPolicy
),
177
c => Assert.IsType<RegexRouteConstraint>(c.
ParameterPolicy
));
206
c => Assert.IsType<RegexRouteConstraint>(c.
ParameterPolicy
));
213
c => Assert.IsType<RegexRouteConstraint>(c.
ParameterPolicy
));
242
c => Assert.Equal("foo", Assert.IsType<RegexRouteConstraint>(c.
ParameterPolicy
).Constraint.ToString()),
243
c => Assert.Equal("bar", Assert.IsType<RegexRouteConstraint>(c.
ParameterPolicy
).Constraint.ToString()),
244
c => Assert.Equal("^(baz)$", Assert.IsType<RegexRouteConstraint>(c.
ParameterPolicy
).Constraint.ToString()));
280
c => Assert.Equal("^(fizz)$", Assert.IsType<RegexRouteConstraint>(c.
ParameterPolicy
).Constraint.ToString()));
287
c => Assert.Equal("foo", Assert.IsType<RegexRouteConstraint>(c.
ParameterPolicy
).Constraint.ToString()),
288
c => Assert.Equal("bar", Assert.IsType<RegexRouteConstraint>(c.
ParameterPolicy
).Constraint.ToString()),
289
c => Assert.Equal("^(baz)$", Assert.IsType<RegexRouteConstraint>(c.
ParameterPolicy
).Constraint.ToString()),
340
c => Assert.NotNull(c.
ParameterPolicy
));
347
c => Assert.NotNull(c.
ParameterPolicy
));
374
var regex = Assert.IsType<RegexRouteConstraint>(Assert.Single(kvp.Value).
ParameterPolicy
);
Patterns\RoutePatternParserTest.cs (2)
740
x.
ParameterPolicy
== y.
ParameterPolicy
;