8 instantiations of RouteAndConstraintAttribute
Microsoft.AspNetCore.Mvc.Core.Test (8)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (8)
1877
[
RouteAndConstraint
("R1")]
1878
[
RouteAndConstraint
("R2")]
1883
[
RouteAndConstraint
("C1")]
1884
[
RouteAndConstraint
("C2")]
1887
[
RouteAndConstraint
("A1")]
1890
[
RouteAndConstraint
("~/A2")]
1893
[
RouteAndConstraint
("A3")]
1894
[
RouteAndConstraint
("A4")]
15 references to RouteAndConstraintAttribute
Microsoft.AspNetCore.Mvc.Core.Test (15)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (15)
1193
Assert.Single(action.ActionConstraints, a => a is
RouteAndConstraintAttribute
);
1199
Assert.Single(action.ActionConstraints, a => a is
RouteAndConstraintAttribute
);
1218
Assert.Single(action.ActionConstraints, a => (a as
RouteAndConstraintAttribute
)?.Template == "C1");
1219
Assert.Single(action.ActionConstraints, a => (a as
RouteAndConstraintAttribute
)?.Template == "A1");
1224
Assert.Single(action.ActionConstraints, a => (a as
RouteAndConstraintAttribute
)?.Template == "C2");
1225
Assert.Single(action.ActionConstraints, a => (a as
RouteAndConstraintAttribute
)?.Template == "A1");
1245
Assert.Single(action.ActionConstraints, a => (a as
RouteAndConstraintAttribute
)?.Template == "C1");
1246
Assert.Single(action.ActionConstraints, a => (a as
RouteAndConstraintAttribute
)?.Template == "A3");
1251
Assert.Single(action.ActionConstraints, a => (a as
RouteAndConstraintAttribute
)?.Template == "C2");
1252
Assert.Single(action.ActionConstraints, a => (a as
RouteAndConstraintAttribute
)?.Template == "A3");
1257
Assert.Single(action.ActionConstraints, a => (a as
RouteAndConstraintAttribute
)?.Template == "C1");
1258
Assert.Single(action.ActionConstraints, a => (a as
RouteAndConstraintAttribute
)?.Template == "A4");
1263
Assert.Single(action.ActionConstraints, a => (a as
RouteAndConstraintAttribute
)?.Template == "C2");
1264
Assert.Single(action.ActionConstraints, a => (a as
RouteAndConstraintAttribute
)?.Template == "A4");
1284
Assert.Single(action.ActionConstraints, a => (a as
RouteAndConstraintAttribute
)?.Template == "~/A2");