5 writes to Actions
Microsoft.AspNetCore.Mvc.Core (2)
ApplicationModels\ControllerModel.cs (2)
33Actions = new List<ActionModel>(); 64Actions = new List<ActionModel>(other.Actions.Select(a => new ActionModel(a) { Controller = this }));
Microsoft.AspNetCore.Mvc.Core.Test (3)
DependencyInjection\ApplicationModelConventionExtensionsTest.cs (3)
49Actions = 59Actions = 101Actions =
69 references to Actions
ApiExplorerWebSite (1)
ApiExplorerInboundOutboundConvention.cs (1)
28foreach (var action in controller.Actions)
ApplicationModelWebSite (2)
Conventions\CloneActionConvention.cs (2)
13foreach (var action in controller.Actions) 30controller.Actions.Add(model);
Microsoft.AspNetCore.Mvc.Core (8)
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (1)
78foreach (var action in controller.Actions)
ApplicationModels\ApplicationModelConventions.cs (1)
48var actions = controller.Actions.ToArray();
ApplicationModels\ApplicationModelFactory.cs (1)
67foreach (var action in controller.Actions)
ApplicationModels\AuthorizationApplicationModelProvider.cs (1)
54foreach (var actionModel in controllerModel.Actions)
ApplicationModels\ControllerModel.cs (1)
64Actions = new List<ActionModel>(other.Actions.Select(a => new ActionModel(a) { Controller = this }));
ApplicationModels\DefaultApplicationModelProvider.cs (1)
82controllerModel.Actions.Add(actionModel);
DependencyInjection\ApplicationModelConventionExtensions.cs (2)
134var actions = controller.Actions.ToArray(); 192var actions = controller.Actions.ToArray();
Microsoft.AspNetCore.Mvc.Core.Test (39)
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (3)
28controllerModel.Actions.Add(actionModel); 56controllerModel.Actions.Add(actionModel); 99controllerModel.Actions.Add(actionModel);
ApplicationModels\ApiConventionApplicationModelConventionTest.cs (1)
175controllerModel.Actions.Add(actionModel);
ApplicationModels\AuthorizationApplicationModelProviderTest.cs (4)
90var action = Assert.Single(controller.Actions); 117var action = Assert.Single(controller.Actions); 189var action = Assert.Single(controller.Actions); 201var action = Assert.Single(controller.Actions);
ApplicationModels\ConsumesConstraintForFormFileParameterConventionTest.cs (1)
73return Assert.Single(controller.Actions, m => m.ActionName == actionName);
ApplicationModels\ControllerActionDescriptorBuilderTest.cs (4)
43controller.Actions.Add(actionModel); 75controller.Actions.Add(actionModel); 101controller.Actions.Add(actionModel); 128controller.Actions.Add(actionModel);
ApplicationModels\ControllerActionDescriptorProviderTests.cs (1)
1163controller.Actions.Add(actionModel);
ApplicationModels\ControllerModelTest.cs (6)
22controller.Actions.Add(action); 40Assert.NotSame(action, controller2.Actions[0]); 49Assert.NotSame(controller.Actions, controller2.Actions); 54Assert.NotSame(controller, controller2.Actions[0].Controller); 55Assert.Same(controller2, controller2.Actions[0].Controller);
ApplicationModels\DefaultApplicationModelProviderTest.cs (9)
180var action = Assert.Single(controllerModel.Actions, a => a.ActionMethod.Name == nameof(ModelBinderController.PostAction)); 224var action = Assert.Single(controllerModel.Actions, a => a.ActionMethod.Name == nameof(ModelBinderController.FormFilesSequences)); 272var action = Assert.Single(controllerModel.Actions, a => a.ActionName == nameof(ModelBinderController.PostAction1)); 300var action = Assert.Single(controllerModel.Actions, a => a.ActionName == nameof(ModelBinderController.PostAction2)); 326var action = Assert.Single(controllerModel.Actions, a => a.ActionMethod == methodInfo); 346var action = Assert.Single(controllerModel.Actions, a => a.ActionMethod == methodInfo); 366var action = Assert.Single(controllerModel.Actions, a => a.ActionMethod == methodInfo); 1259Assert.Empty(model.Actions); 1275var action = Assert.Single(model.Actions);
ApplicationModels\InferParameterBindingInfoConventionTest.cs (2)
519var actionModel = Assert.Single(controllerModel.Actions, m => m.ActionName == actionName); 928return Assert.Single(controller.Actions, m => m.ActionName == actionName);
DependencyInjection\ApplicationModelConventionExtensionsTest.cs (8)
22controllerModel.Actions.Add(actionModel); 75var kvp = Assert.Single(controllerModel1.Actions[0].Properties); 79kvp = Assert.Single(controllerModel2.Actions[0].Properties); 142kvp = Assert.Single(controllerModel1.Actions[0].Parameters[0].Properties); 235controllerModel.Actions.Add( 314controllerModel.Actions.Add(actionModel); 347controllerModel.Actions.Add(actionModel); 474action.Controller.Actions.Remove(action);
Microsoft.AspNetCore.Mvc.Cors (1)
CorsApplicationModelProvider.cs (1)
61foreach (var actionModel in controllerModel.Actions)
Microsoft.AspNetCore.Mvc.Cors.Test (10)
CorsApplicationModelProviderTest.cs (10)
35var action = Assert.Single(model.Actions); 54var action = Assert.Single(model.Actions); 72var action = Assert.Single(controller.Actions); 90var action = Assert.Single(controller.Actions); 109var action = Assert.Single(controller.Actions); 128var action = Assert.Single(controller.Actions); 149var action = Assert.Single(model.Actions); 168var action = Assert.Single(model.Actions); 187var action = Assert.Single(model.Actions); 205var action = Assert.Single(model.Actions);
Microsoft.AspNetCore.Mvc.IntegrationTests (4)
AuthorizeFilterIntegrationTest.cs (4)
36var action = Assert.Single(controller.Actions); 64var action = Assert.Single(controller.Actions); 95var action = Assert.Single(controller.Actions); 131var action = Assert.Single(controller.Actions);
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Filters\AntiforgeryApplicationModelProvider.cs (1)
37foreach (var actionModel in controllerModel.Actions)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
Filters\AntiforgeryApplicationModelProviderTest.cs (3)
27Assert.Collection(controller.Actions, 112Assert.Collection(controller.Actions, 170controllerModel.Actions.Add(actionModel);