13 instantiations of IntRouteConstraint
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
Microsoft.AspNetCore.Mvc.Core.Test (3)
Microsoft.AspNetCore.OpenApi.Tests (1)
Microsoft.AspNetCore.Routing.Tests (8)
Matching\DfaMatcherBuilderTest.cs (4)
3360var endpoint = CreateEndpoint("/a/b/c", constraints: new { a = new IntRouteConstraint(), });
3475CreateEndpoint("/a/b/c", constraints: new { a = new IntRouteConstraint(), }, metadata: new object[] { new TestMetadata1(), new TestMetadata2(), }),
3477CreateEndpoint("/a/b/c", constraints: new { a = new IntRouteConstraint(), }, metadata: new object[] { new TestMetadata1(), }),
3478CreateEndpoint("/a/b/c", constraints: new { a = new IntRouteConstraint(), }, metadata: new object[] { new TestMetadata2(), }),
28 references to IntRouteConstraint
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (10)
DefaultApiDescriptionProviderTest.cs (10)
162[InlineData("api/products/{id:int}", false, typeof(IntRouteConstraint), null)]
163[InlineData("api/products/{id:int?}", true, typeof(IntRouteConstraint), null)]
166[InlineData("api/products/{*id:int}", false, typeof(IntRouteConstraint), null)]
167[InlineData("api/products/{*id:int=5}", true, typeof(IntRouteConstraint), "5")]
208[InlineData("api/products/{id:int}", false, typeof(IntRouteConstraint), null)]
209[InlineData("api/products/{id:int?}", true, typeof(IntRouteConstraint), null)]
210[InlineData("api/products/{id:int=5}", true, typeof(IntRouteConstraint), "5")]
212[InlineData("api/products/{*id:int}", false, typeof(IntRouteConstraint), null)]
213[InlineData("api/products/{*id:int=5}", true, typeof(IntRouteConstraint), "5")]
443Assert.IsType<IntRouteConstraint>(Assert.Single(id2.RouteInfo.Constraints));
Microsoft.AspNetCore.Mvc.Core.Test (3)
Microsoft.AspNetCore.OpenApi (1)
Microsoft.AspNetCore.Routing (1)
Microsoft.AspNetCore.Routing.Tests (13)