28 references to ActionModel
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationModels\DefaultApplicationModelProvider.cs (1)
269
var actionModel = new
ActionModel
(methodInfo, attributes);
Microsoft.AspNetCore.Mvc.Core.Test (26)
ApplicationModels\ActionModelTest.cs (2)
19
var action = new
ActionModel
(typeof(TestController).GetMethod(nameof(TestController.Edit)),
60
var action = new
ActionModel
(
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (3)
24
var actionModel = new
ActionModel
(method, Array.Empty<object>())
51
var actionModel = new
ActionModel
(method, Array.Empty<object>())
94
var actionModel = new
ActionModel
(method, Array.Empty<object>())
ApplicationModels\ApiConventionApplicationModelConventionTest.cs (2)
67
var action = new
ActionModel
(typeof(object).GetMethods()[0], Array.Empty<object>())
170
var actionModel = new
ActionModel
(typeof(TestController).GetMethod(actionName), actionAttributes)
ApplicationModels\ApiVisibilityConventionTest.cs (1)
56
return new
ActionModel
(typeof(object).GetMethods()[0], new object[0])
ApplicationModels\ClientErrorResultFilterConventionTest.cs (1)
31
var action = new
ActionModel
(typeof(object).GetMethods()[0], new object[0]);
ApplicationModels\ControllerActionDescriptorBuilderTest.cs (4)
40
var actionModel = new
ActionModel
(methodInfo, new List<object>() { });
72
var actionModel = new
ActionModel
(methodInfo, new List<object>() { });
98
var actionModel = new
ActionModel
(methodInfo, new List<object>() { });
124
var actionModel = new
ActionModel
(methodInfo, new List<object>() { });
ApplicationModels\ControllerActionDescriptorProviderTests.cs (1)
1161
var actionModel = new
ActionModel
(methodInfo, new List<object>() { actionConvention.Object });
ApplicationModels\ControllerModelTest.cs (1)
20
var action = new
ActionModel
(typeof(TestController).GetMethod("Edit"),
ApplicationModels\InvalidModelStateFilterConventionTest.cs (1)
26
var action = new
ActionModel
(typeof(object).GetMethods()[0], new object[0]);
ApplicationModels\ParameterModelTest.cs (1)
18
parameter.Action = new
ActionModel
(typeof(TestController).GetMethod("Edit"), new List<object>());
ApplicationModels\RouteTokenTransformerConventionTest.cs (2)
18
var model = new
ActionModel
(GetMethodInfo(), Array.Empty<object>());
38
var model = new
ActionModel
(GetMethodInfo(), Array.Empty<object>());
DependencyInjection\ApplicationModelConventionExtensionsTest.cs (7)
21
var actionModel = new
ActionModel
(controllerType.GetMethod(nameof(HelloController.GetInfo)), Array.Empty<object>());
51
new
ActionModel
(actionMethod1, Array.Empty<object>()),
61
new
ActionModel
(actionMethod2, Array.Empty<object>()),
103
new
ActionModel
(actionMethod1, Array.Empty<object>())
236
new
ActionModel
(controllerType.GetMethod(nameof(HelloController.GetHello)), Array.Empty<object>())
310
var actionModel = new
ActionModel
(controllerType.GetMethod(nameof(HelloController.GetInfo)), Array.Empty<object>())
343
var actionModel = new
ActionModel
(controllerType.GetMethod(nameof(HelloController.GetInfo)), Array.Empty<object>())
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Filters\AntiforgeryApplicationModelProviderTest.cs (1)
165
var actionModel = new
ActionModel
(typeof(TestController).GetMethod(actionName), actionAttributes)