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)
28var constraint = _constraintResolver.ResolveConstraint("required"); 38var constraint = _constraintResolver.ResolveConstraint("int"); 49() => _constraintResolver.ResolveConstraint("int(5)")); 60var constraint = _constraintResolver.ResolveConstraint("alpha"); 70var constraint = _constraintResolver.ResolveConstraint("regex(ab,1)"); 80var constraint = _constraintResolver.ResolveConstraint( 91var constraint = _constraintResolver.ResolveConstraint("bool"); 101Assert.Null(_constraintResolver.ResolveConstraint("composite")); 108var constraint = _constraintResolver.ResolveConstraint("datetime"); 118var constraint = _constraintResolver.ResolveConstraint("decimal"); 128var constraint = _constraintResolver.ResolveConstraint("double"); 138var constraint = _constraintResolver.ResolveConstraint("float"); 148var constraint = _constraintResolver.ResolveConstraint("guid"); 158var constraint = _constraintResolver.ResolveConstraint("int"); 168var constraint = _constraintResolver.ResolveConstraint("length(5)"); 180var constraint = _constraintResolver.ResolveConstraint("length(5, 10)"); 192var constraint = _constraintResolver.ResolveConstraint("long"); 202var constraint = _constraintResolver.ResolveConstraint("max(10)"); 213var constraint = _constraintResolver.ResolveConstraint("maxlength(10)"); 224var constraint = _constraintResolver.ResolveConstraint("min(3)"); 235var constraint = _constraintResolver.ResolveConstraint("minlength(3)"); 246var constraint = _constraintResolver.ResolveConstraint("range(5, 10)"); 360var ex = Assert.Throws<RouteCreationException>(() => _constraintResolver.ResolveConstraint("int(5,6)"));