1 write to _constraintResolver
Microsoft.AspNetCore.Routing.Tests (1)
DefaultInlineConstraintResolverTest.cs (1)
21
_constraintResolver
= GetInlineConstraintResolver(routeOptions);
23 references to _constraintResolver
Microsoft.AspNetCore.Routing.Tests (23)
DefaultInlineConstraintResolverTest.cs (23)
28
var constraint =
_constraintResolver
.ResolveConstraint("required");
38
var constraint =
_constraintResolver
.ResolveConstraint("int");
49
() =>
_constraintResolver
.ResolveConstraint("int(5)"));
60
var constraint =
_constraintResolver
.ResolveConstraint("alpha");
70
var constraint =
_constraintResolver
.ResolveConstraint("regex(ab,1)");
80
var constraint =
_constraintResolver
.ResolveConstraint(
91
var constraint =
_constraintResolver
.ResolveConstraint("bool");
101
Assert.Null(
_constraintResolver
.ResolveConstraint("composite"));
108
var constraint =
_constraintResolver
.ResolveConstraint("datetime");
118
var constraint =
_constraintResolver
.ResolveConstraint("decimal");
128
var constraint =
_constraintResolver
.ResolveConstraint("double");
138
var constraint =
_constraintResolver
.ResolveConstraint("float");
148
var constraint =
_constraintResolver
.ResolveConstraint("guid");
158
var constraint =
_constraintResolver
.ResolveConstraint("int");
168
var constraint =
_constraintResolver
.ResolveConstraint("length(5)");
180
var constraint =
_constraintResolver
.ResolveConstraint("length(5, 10)");
192
var constraint =
_constraintResolver
.ResolveConstraint("long");
202
var constraint =
_constraintResolver
.ResolveConstraint("max(10)");
213
var constraint =
_constraintResolver
.ResolveConstraint("maxlength(10)");
224
var constraint =
_constraintResolver
.ResolveConstraint("min(3)");
235
var constraint =
_constraintResolver
.ResolveConstraint("minlength(3)");
246
var constraint =
_constraintResolver
.ResolveConstraint("range(5, 10)");
360
var ex = Assert.Throws<RouteCreationException>(() =>
_constraintResolver
.ResolveConstraint("int(5,6)"));