13 references to HttpMethodActionConstraint
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (2)
DefaultApiDescriptionProviderTest.cs (2)
143new HttpMethodActionConstraint(new string[] { "PUT", "POST" }), 144new HttpMethodActionConstraint(new string[] { "GET" }),
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationModels\DefaultApplicationModelProvider.cs (1)
640selectorModel.ActionConstraints.Add(new HttpMethodActionConstraint(httpMethods));
Microsoft.AspNetCore.Mvc.Core.Test (5)
ActionConstraints\HttpMethodActionConstraintTest.cs (2)
29var constraint = new HttpMethodActionConstraint(httpMethods); 45var constraint = new HttpMethodActionConstraint(httpMethods);
ApplicationModels\ActionModelTest.cs (1)
69selectorModel.ActionConstraints.Add(new HttpMethodActionConstraint(new string[] { "GET" }));
ApplicationModels\ControllerModelTest.cs (1)
73selectorModel.ActionConstraints.Add(new HttpMethodActionConstraint(new string[] { "GET" }));
Infrastructure\ActionSelectorTest.cs (1)
527new HttpMethodActionConstraint(new string[] { "POST" }),
Microsoft.AspNetCore.Mvc.Cors (1)
CorsHttpMethodActionConstraint.cs (1)
16: base(constraint.HttpMethods)
Microsoft.AspNetCore.Mvc.Cors.Test (3)
CorsHttpMethodActionConstraintTest.cs (3)
30var constraint = new CorsHttpMethodActionConstraint(new HttpMethodActionConstraint(httpMethods)) as IActionConstraint; 45var constraint = new CorsHttpMethodActionConstraint(new HttpMethodActionConstraint(new[] { "GET", "Post" })) as IActionConstraint; 61var constraint = new CorsHttpMethodActionConstraint(new HttpMethodActionConstraint(httpMethods)) as IActionConstraint;
Microsoft.AspNetCore.Mvc.Test (1)
Routing\ActionConstraintMatcherPolicyTest.cs (1)
385new HttpMethodActionConstraint(new[]{ "GET", }),