4 instantiations of CorsHttpMethodActionConstraint
Microsoft.AspNetCore.Mvc.Cors (1)
CorsApplicationModelProvider.cs (1)
102
actionConstraints[j] = new
CorsHttpMethodActionConstraint
(httpConstraint);
Microsoft.AspNetCore.Mvc.Cors.Test (3)
CorsHttpMethodActionConstraintTest.cs (3)
30
var constraint = new
CorsHttpMethodActionConstraint
(new HttpMethodActionConstraint(httpMethods)) as IActionConstraint;
45
var constraint = new
CorsHttpMethodActionConstraint
(new HttpMethodActionConstraint(new[] { "GET", "Post" })) as IActionConstraint;
61
var constraint = new
CorsHttpMethodActionConstraint
(new HttpMethodActionConstraint(httpMethods)) as IActionConstraint;
10 references to CorsHttpMethodActionConstraint
Microsoft.AspNetCore.Mvc.Cors.Test (10)
CorsApplicationModelProviderTest.cs (10)
38
Assert.IsType<
CorsHttpMethodActionConstraint
>(constraint);
57
Assert.IsType<
CorsHttpMethodActionConstraint
>(constraint);
75
Assert.IsType<
CorsHttpMethodActionConstraint
>(constraint);
94
Assert.IsType<
CorsHttpMethodActionConstraint
>(constraint);
113
Assert.IsType<
CorsHttpMethodActionConstraint
>(constraint);
131
Assert.IsType<
CorsHttpMethodActionConstraint
>(constraint);
152
Assert.IsType<
CorsHttpMethodActionConstraint
>(constraint);
171
Assert.IsType<
CorsHttpMethodActionConstraint
>(constraint);
190
Assert.IsType<
CorsHttpMethodActionConstraint
>(constraint);
208
Assert.IsNotType<
CorsHttpMethodActionConstraint
>(constraint);