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)
192[InlineData("api/products/{id:int}", false, typeof(IntRouteConstraint), null)]
193[InlineData("api/products/{id:int?}", true, typeof(IntRouteConstraint), null)]
196[InlineData("api/products/{*id:int}", false, typeof(IntRouteConstraint), null)]
197[InlineData("api/products/{*id:int=5}", true, typeof(IntRouteConstraint), "5")]
238[InlineData("api/products/{id:int}", false, typeof(IntRouteConstraint), null)]
239[InlineData("api/products/{id:int?}", true, typeof(IntRouteConstraint), null)]
240[InlineData("api/products/{id:int=5}", true, typeof(IntRouteConstraint), "5")]
242[InlineData("api/products/{*id:int}", false, typeof(IntRouteConstraint), null)]
243[InlineData("api/products/{*id:int=5}", true, typeof(IntRouteConstraint), "5")]
473Assert.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)