1 write to Constraints
Microsoft.AspNetCore.Routing (1)
Constraints\CompositeRouteConstraint.cs (1)
29
Constraints
= constraints;
10 references to Constraints
Microsoft.AspNetCore.Routing (2)
Constraints\CompositeRouteConstraint.cs (2)
53
foreach (var constraint in
Constraints
)
71
foreach (var constraint in
Constraints
)
Microsoft.AspNetCore.Routing.Tests (8)
RouteConstraintBuilderTest.cs (3)
143
Assert.Equal(2, compositeConstraint.
Constraints
.Count());
145
Assert.Single(compositeConstraint.
Constraints
, c => c is MinLengthRouteConstraint);
146
Assert.Single(compositeConstraint.
Constraints
, c => c is AlphaRouteConstraint);
RouteTest.cs (5)
324
Assert.Equal(2, compositeConstraint.
Constraints
.Count<IRouteConstraint>());
326
Assert.Single(compositeConstraint.
Constraints
, c => c is IntRouteConstraint);
327
Assert.Single(compositeConstraint.
Constraints
, c => c is RangeRouteConstraint);
1664
Assert.IsType<RegexRouteConstraint>(constraint.
Constraints
.ElementAt(0));
1665
Assert.IsType<IntRouteConstraint>(constraint.
Constraints
.ElementAt(1));