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