3 writes to Parameters
Microsoft.AspNetCore.Mvc.Core (2)
ApplicationModels\ActionModel.cs (2)
37
Parameters
= new List<ParameterModel>();
66
Parameters
= new List<ParameterModel>(other.Parameters.Select(p => new ParameterModel(p) { Action = this }));
Microsoft.AspNetCore.Mvc.Core.Test (1)
DependencyInjection\ApplicationModelConventionExtensionsTest.cs (1)
105
Parameters
=
55 references to Parameters
ApplicationModelWebSite (1)
Conventions\FromHeaderConvention.cs (1)
13
foreach (var param in action.
Parameters
)
Microsoft.AspNetCore.Mvc.Core (10)
ApplicationModels\ActionModel.cs (1)
66
Parameters = new List<ParameterModel>(other.
Parameters
.Select(p => new ParameterModel(p) { Action = this }));
ApplicationModels\ApplicationModelConventions.cs (1)
63
var parameters = action.
Parameters
.ToArray();
ApplicationModels\ConsumesConstraintForFormFileParameterConvention.cs (1)
48
foreach (var parameter in action.
Parameters
)
ApplicationModels\ControllerActionDescriptorBuilder.cs (2)
64
var parameterDescriptors = new List<ParameterDescriptor>(action.
Parameters
.Count);
65
foreach (var parameter in action.
Parameters
)
ApplicationModels\DefaultApplicationModelProvider.cs (1)
90
actionModel.
Parameters
.Add(parameterModel);
ApplicationModels\InferParameterBindingInfoConvention.cs (3)
81
for (var i = 0; i < action.
Parameters
.Count; i++)
83
var parameter = action.
Parameters
[i];
92
var fromBodyParameters = action.
Parameters
.Where(p => p.BindingInfo!.BindingSource == BindingSource.Body).ToList();
DependencyInjection\ApplicationModelConventionExtensions.cs (1)
137
var parameters = action.
Parameters
.ToArray();
Microsoft.AspNetCore.Mvc.Core.Test (44)
ApplicationModels\ActionModelTest.cs (8)
25
action.
Parameters
.Add(parameter);
41
Assert.NotSame(action.
Parameters
, action2.
Parameters
);
42
Assert.NotNull(action2.
Parameters
);
43
Assert.Single(action2.
Parameters
);
44
Assert.NotSame(parameter, action2.
Parameters
[0]);
52
Assert.NotSame(action, action2.
Parameters
[0].Action);
53
Assert.Same(action2, action2.
Parameters
[0].Action);
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (2)
63
actionModel.
Parameters
.Add(parameterModel);
106
actionModel.
Parameters
.Add(parameterModel);
ApplicationModels\ConsumesConstraintForFormFileParameterConventionTest.cs (1)
36
action.
Parameters
[0].BindingInfo = new BindingInfo
ApplicationModels\ControllerActionDescriptorProviderTests.cs (1)
1169
actionModel.
Parameters
.Add(parameterModel);
ApplicationModels\DefaultApplicationModelProviderTest.cs (4)
182
action.
Parameters
,
226
action.
Parameters
,
274
action.
Parameters
,
302
action.
Parameters
,
ApplicationModels\InferParameterBindingInfoConventionTest.cs (23)
29
var parameterModel = Assert.Single(action.
Parameters
);
47
var parameterModel = Assert.Single(action.
Parameters
);
123
action.
Parameters
,
157
action.
Parameters
,
183
action.
Parameters
,
209
action.
Parameters
,
234
var parameter = Assert.Single(action.
Parameters
);
255
var parameter = Assert.Single(action.
Parameters
);
276
var parameter = Assert.Single(action.
Parameters
);
658
var parameter = Assert.Single(action.
Parameters
);
679
var parameter = Assert.Single(action.
Parameters
);
700
var parameter = Assert.Single(action.
Parameters
);
720
var parameter = Assert.Single(action.
Parameters
);
741
var parameter = Assert.Single(action.
Parameters
);
762
var parameter = Assert.Single(action.
Parameters
);
783
var parameter = Assert.Single(action.
Parameters
);
804
var parameter = Assert.Single(action.
Parameters
);
825
var parameter = Assert.Single(action.
Parameters
);
846
var parameter = Assert.Single(action.
Parameters
);
866
var parameter = Assert.Single(action.
Parameters
);
889
var parameter = Assert.Single(action.
Parameters
);
934
return Assert.Single(action.
Parameters
);
939
return Assert.Single(action.
Parameters
.Where(x => typeof(T).IsAssignableFrom(x.ParameterType)));
DependencyInjection\ApplicationModelConventionExtensionsTest.cs (5)
26
actionModel.
Parameters
.Add(parameterModel);
142
kvp = Assert.Single(controllerModel1.Actions[0].
Parameters
[0].Properties);
321
actionModel.
Parameters
.Add(parameterModel);
354
actionModel.
Parameters
.Add(parameterModel);
491
parameter.Action.
Parameters
.Remove(parameter);