542 writes to Name
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointMetadataApiDescriptionProvider.cs (1)
207
Name
= name,
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (2)
DefaultApiDescriptionProviderTest.cs (2)
2317
Name
= property.Name,
2335
Name
= parameter.Name,
Microsoft.AspNetCore.Mvc.Core (2)
ApplicationModels\ControllerActionDescriptorBuilder.cs (2)
78
Name
= parameterModel.ParameterName,
92
Name
= propertyModel.PropertyName,
Microsoft.AspNetCore.Mvc.Core.Test (42)
Controllers\ControllerBinderDelegateProviderTest.cs (27)
36
Name
= "foo",
92
Name
= nameof(TestController.RequiredButBindNeverProperty),
147
Name
= "foo",
189
Name
= "foo",
231
Name
= "foo",
282
Name
= "foo",
332
Name
= "foo",
380
Name
= "foo",
430
Name
= "foo",
478
Name
= nameof(TestController.ValidatedProperty),
526
Name
= nameof(TestController.ValidatedProperty),
573
Name
= nameof(TestController.StringProperty),
622
Name
= nameof(TestController.StringProperty),
661
Name
= nameof(TestController.CollectionProperty),
701
Name
= nameof(TestController.NonNullableProperty),
742
Name
= "NullableProperty",
783
Name
= "test-parameter",
796
Name
= nameof(TestController.NullableProperty),
846
Name
= "test-parameter",
859
Name
= nameof(TestController.NullableProperty),
955
Name
= propertyName,
1013
Name
= keyValuePair.Key,
1086
Name
= "accountId",
1091
Name
= "transferInfo",
1103
Name
= "transferInfo",
1112
Name
= "accountId",
1208
Parameters = new[] { new ParameterDescriptor {
Name
= "name", ParameterType = typeof(string) } },
Infrastructure\ControllerActionInvokerTest.cs (2)
1395
Name
= "value",
1663
Name
= kvp.Key,
ModelBinding\ParameterBinderTest.cs (13)
73
new ParameterDescriptor {
Name
= "myParam", ParameterType = typeof(Person) },
111
new ParameterDescriptor {
Name
= "myParam", ParameterType = typeof(Person) },
134
Name
= string.Empty,
143
Name
= string.Empty,
249
new ParameterDescriptor {
Name
= "myParam", ParameterType = typeof(Person) },
290
new ParameterDescriptor {
Name
= "myParam", ParameterType = typeof(Person) },
312
Name
= parameter.Name,
367
Name
= parameter.Name,
422
Name
= property.Name,
476
Name
= property.Name,
529
Name
= "patchDocument",
588
Name
= "patchDocument",
660
Name
= "identifier",
Microsoft.AspNetCore.Mvc.IntegrationTests (476)
ActionParametersIntegrationTest.cs (22)
40
Name
= "prefix",
87
Name
= "prefix",
133
Name
= "prefix",
181
Name
= "prefix",
217
Name
= "Address",
262
Name
= "Address",
308
Name
= "Address",
353
Name
= "Address",
394
Name
= "p",
427
Name
= "p",
455
Name
= "p",
490
Name
= "p"
513
Name
= "p"
547
Name
= "p",
580
Name
= "p",
612
Name
= "prefix",
638
Name
= BindingAndValidationController.BindNeverParamInfo.Name,
671
Name
= ParameterWithValidateNever.ValidateNeverParameterInfo.Name,
713
Name
= BindingAndValidationController.BindRequiredParamInfo.Name,
766
Name
= parameterInfo.Name,
811
Name
= parameterInfo.Name,
855
Name
= parameterInfo.Name,
ArrayModelBinderIntegrationTest.cs (10)
20
Name
= "parameter",
60
Name
= "parameter",
104
Name
= "parameter",
144
Name
= "parameter",
179
Name
= "parameter",
220
Name
= "parameter",
265
Name
= "parameter",
306
Name
= "parameter",
343
Name
= "parameter",
383
Name
= "parameter",
BinderTypeBasedModelBinderIntegrationTest.cs (7)
21
Name
= "Parameter1",
55
Name
= "Parameter1",
92
Name
= "Parameter1",
159
Name
= "Parameter1",
211
Name
= "Parameter1",
248
Name
= "Parameter1",
284
Name
= "Parameter1",
BindingSourceMetadataProviderIntegrationTest.cs (2)
29
Name
= "Parameter1",
83
Name
= "Parameter1",
BindPropertyIntegrationTest.cs (7)
30
Name
= "parameter",
57
Name
= "parameter",
84
Name
= "parameter",
109
Name
= nameof(TestController.BindNeverProp),
145
Name
= nameof(TestController.BindRequiredProp),
193
Name
= propertyInfo.Name,
264
Name
= propertyName,
BodyValidationIntegrationTests.cs (19)
25
Name
= "Parameter1",
67
Name
= "Parameter1",
100
Name
= "Parameter1",
150
Name
= "Parameter1",
191
Name
= "Parameter1",
231
Name
= "Parameter1",
267
Name
= "Parameter1",
312
Name
= "Parameter1",
360
Name
= "Parameter1",
401
Name
= "Parameter1",
459
Name
= "Parameter1",
516
Name
= "Parameter1",
565
Name
= "Parameter1",
609
Name
= "Parameter1",
654
Name
= "Parameter1",
711
Name
= "param-name",
770
Name
= "param-name",
830
Name
= "parameter-name",
876
Name
= "parameter-name",
ByteArrayModelBinderIntegrationTest.cs (3)
26
Name
= "Parameter1",
76
Name
= "Parameter1",
109
Name
= "Parameter1",
CancellationTokenModelBinderIntegrationTest.cs (3)
23
Name
= "Parameter1",
63
Name
= "Parameter1",
98
Name
= "Parameter1",
CollectionModelBinderIntegrationTest.cs (23)
26
Name
= "parameter",
70
Name
= "parameter",
110
Name
= "parameter",
142
Name
= "parameter",
182
Name
= "parameter",
218
Name
= "parameter",
255
Name
= "parameter",
293
Name
= "parameter",
348
Name
= "parameter",
403
Name
= "parameter",
454
Name
= "parameter",
498
Name
= "parameter",
549
Name
= "parameter",
591
Name
= "parameter",
649
Name
= "parameter",
696
Name
= "parameter",
939
Name
= "parameter",
980
Name
= "parameter",
1008
Name
= "parameter",
1065
Name
= "parameter",
1104
Name
= "parameter",
1132
Name
= "parameter",
1181
Name
= "parameter",
ComplexRecordIntegrationTest.cs (78)
37
Name
= "parameter",
87
Name
= "parameter",
137
Name
= "parameter",
191
Name
= "parameter",
242
Name
= "parameter",
291
Name
= "parameter",
339
Name
= "parameter",
392
Name
= "parameter",
444
Name
= "parameter",
496
Name
= "parameter",
549
Name
= "parameter",
602
Name
= "parameter",
653
Name
= "parameter",
710
Name
= "parameter",
764
Name
= "parameter",
820
Name
= "parameter",
875
Name
= "parameter",
922
Name
= "parameter",
967
Name
= "parameter",
1023
Name
= "parameter",
1078
Name
= "parameter",
1125
Name
= "parameter",
1170
Name
= "parameter",
1226
Name
= "parameter",
1281
Name
= "parameter",
1328
Name
= "parameter",
1381
Name
= "p",
1488
Name
= "p",
1595
Name
= "p",
1704
Name
= "parameter",
1760
Name
= "parameter",
1817
Name
= "p",
1909
Name
= "parameter",
1959
Name
= "parameter",
2015
Name
= "parameter",
2064
Name
= "parameter",
2118
Name
= "parameter",
2172
Name
= "parameter",
2232
Name
= "parameter",
2280
Name
= "parameter",
2332
Name
= "parameter",
2380
Name
= "parameter",
2428
Name
= "parameter",
2480
Name
= "parameter",
2529
Name
= "parameter",
2583
Name
= "parameter",
2644
Name
= "parameter-name",
2693
Name
= "parameter-name",
2748
Name
= "parameter-name",
2803
Name
= "parameter-name",
2859
Name
= "parameter",
2904
Name
= "parameter",
2972
Name
= "parameter",
3046
Name
= "parameter",
3111
Name
= "parameter",
3162
Name
= "parameter",
3234
Name
= "parameter",
3313
Name
= "parameter",
3340
Name
= "parameter",
3381
Name
= "parameter",
3417
Name
= "parameter",
3444
Name
= "parameter",
3487
Name
= "parameter",
3530
Name
= "parameter",
3573
Name
= "parameter",
3624
Name
= "parameter",
3670
Name
= "parameter",
3721
Name
= "parameter",
3764
Name
= "parameter",
3810
Name
= "parameter",
3853
Name
= "parameter",
3897
Name
= "parameter",
3942
Name
= "parameter",
3986
Name
= "parameter",
4027
Name
= "parameter",
4070
Name
= "parameter",
4115
Name
= "parameter",
4160
Name
= "parameter",
ComplexTypeIntegrationTestBase.cs (63)
34
Name
= "parameter",
74
Name
= "parameter",
124
Name
= "parameter",
174
Name
= "parameter",
225
Name
= "parameter",
274
Name
= "parameter",
332
Name
= "parameter",
385
Name
= "parameter",
437
Name
= "parameter",
499
Name
= "parameter",
552
Name
= "parameter",
605
Name
= "parameter",
656
Name
= "parameter",
713
Name
= "parameter",
772
Name
= "parameter",
828
Name
= "parameter",
883
Name
= "parameter",
930
Name
= "parameter",
980
Name
= "parameter",
1036
Name
= "parameter",
1091
Name
= "parameter",
1138
Name
= "parameter",
1188
Name
= "parameter",
1244
Name
= "parameter",
1299
Name
= "parameter",
1346
Name
= "parameter",
1417
Name
= "p",
1524
Name
= "p",
1631
Name
= "p",
1745
Name
= "parameter",
1801
Name
= "parameter",
1856
Name
= "parameter",
1905
Name
= "parameter",
1957
Name
= "p",
2056
Name
= "parameter",
2113
Name
= "parameter",
2168
Name
= "parameter",
2226
Name
= "parameter",
2280
Name
= "parameter",
2334
Name
= "parameter",
2398
Name
= "parameter",
2446
Name
= "parameter",
2498
Name
= "parameter",
2550
Name
= "parameter",
2598
Name
= "parameter",
2650
Name
= "parameter",
2702
Name
= "parameter",
2756
Name
= "parameter",
2823
Name
= "parameter-name",
2872
Name
= "parameter-name",
2939
Name
= "parameter-name",
2994
Name
= "parameter-name",
3052
Name
= "parameter",
3108
Name
= "parameter",
3180
Name
= "parameter",
3261
Name
= "parameter",
3333
Name
= "parameter",
3384
Name
= "parameter",
3463
Name
= "parameter",
3548
Name
= "parameter",
3585
Name
= "parameter",
3632
Name
= "parameter",
3686
Name
= "parameter",
DictionaryModelBinderIntegrationTest.cs (31)
24
Name
= "parameter",
64
Name
= "parameter",
101
Name
= "parameter",
151
Name
= "parameter",
192
Name
= "parameter",
343
Name
= "parameter",
380
Name
= "parameter",
404
Name
= "parameter",
439
Name
= "parameter",
509
Name
= "parameter",
554
Name
= "parameter",
592
Name
= "parameter",
627
Name
= "parameter",
662
Name
= "parameter",
703
Name
= "parameter",
747
Name
= "parameter",
786
Name
= "parameter",
826
Name
= "parameter",
861
Name
= "parameter",
913
Name
= "parameter",
951
Name
= "parameter",
985
Name
= "parameter",
1024
Name
= "parameter",
1063
Name
= "parameter",
1167
Name
= "parameter",
1209
Name
= "parameter",
1238
Name
= "parameter",
1292
Name
= "parameter",
1367
Name
= "parameter",
1403
Name
= "parameter",
1445
Name
= "parameter",
ExcludeBindingMetadataProviderIntegrationTest.cs (2)
30
Name
= "Parameter1",
98
Name
= "Parameter1",
FormCollectionModelBindingIntegrationTest.cs (3)
33
Name
= "Parameter1",
80
Name
= "Parameter1",
125
Name
= "Parameter1",
FormFileModelBindingIntegrationTest.cs (22)
33
Name
= "Parameter1",
81
Name
= "Parameter1",
132
Name
= "Parameter1",
190
Name
= "Parameter1",
277
Name
= "fleet",
342
Name
= "fleet",
408
Name
= "Parameter1",
478
Name
= "Parameter1",
524
Name
= "Parameter1",
567
Name
= "Parameter1",
613
Name
= "Parameter1",
662
Name
= "Parameter1",
702
Name
= "p",
761
Name
= "house",
827
Name
= "house",
888
Name
= "house",
927
Name
= "house",
989
Name
= "p",
1043
Name
= "p",
1094
Name
= "p",
1139
Name
= "p",
1198
Name
= "p",
GenericModelBinderIntegrationTest.cs (14)
27
Name
= "parameter",
66
Name
= "parameter",
104
Name
= "parameter",
203
Name
= "parameter",
231
Name
= "parameter",
265
Name
= "parameter",
310
Name
= "parameter",
355
Name
= "parameter",
390
Name
= "parameter",
434
Name
= "parameter",
478
Name
= "parameter",
513
Name
= "parameter",
562
Name
= "parameter",
610
Name
= "parameter",
HeaderModelBinderIntegrationTest.cs (7)
33
Name
= "Parameter1",
72
Name
= "Parameter1",
117
Name
= "Parameter1",
163
Name
= "Parameter1",
210
Name
= "Parameter1",
266
Name
= "Parameter1",
311
Name
= "Parameter1",
JQueryFormatModelBindingIntegrationTest.cs (2)
20
Name
= "parameter",
61
Name
= "parameter",
KeyValuePairModelBinderIntegrationTest.cs (13)
20
Name
= "parameter",
60
Name
= "parameter",
115
Name
= "parameter",
147
Name
= "parameter",
202
Name
= "parameter",
234
Name
= "parameter",
278
Name
= "parameter",
318
Name
= "parameter",
356
Name
= "parameter",
397
Name
= "parameter",
442
Name
= "parameter",
483
Name
= "parameter",
519
Name
= "p",
ModelPrefixSelectionIntegrationTest.cs (5)
28
Name
= "parameter",
73
Name
= "parameter",
122
Name
= "parameter",
161
Name
= "parameter",
210
Name
= "parameter",
NullableReferenceTypeIntegrationTest.cs (4)
27
Name
= "Parameter1",
75
Name
= "Parameter1",
114
Name
= "Parameter1",
161
Name
= "param1",
ServicesModelBinderIntegrationTest.cs (11)
20
Name
= "Parameter1",
58
Name
= "ControllerProperty",
94
Name
= "ControllerProperty",
130
Name
= "ControllerProperty",
166
Name
= "ControllerProperty",
203
Name
= "ControllerProperty",
236
Name
= "ControllerProperty",
272
Name
= "ControllerProperty",
305
Name
= "ControllerProperty",
359
Name
= "parameter-name",
397
Name
= "parameter-name",
SimpleTypeModelBinderIntegrationTest.cs (17)
25
Name
= "Parameter1",
73
Name
= "Parameter1",
117
Name
= "Parameter1",
161
Name
= "Parameter1",
195
Name
= "Parameter1",
239
Name
= "Parameter1",
284
Name
= "Parameter1",
323
Name
= "Parameter1",
367
Name
= "Parameter1",
435
Name
= "Parameter1",
478
Name
= "Parameter1",
538
Name
= "Parameter1",
575
Name
= "Parameter1",
613
Name
= "Parameter1",
667
Name
= "Parameter1",
712
Name
= "Parameter1",
756
Name
= "Parameter1",
ValidationIntegrationTests.cs (54)
48
Name
= "accountId",
53
Name
= "transferInfo",
65
Name
= "transferInfo",
74
Name
= "accountId",
170
Name
= "parameter",
207
Name
= "parameter",
258
Name
= "parameter",
296
Name
= "parameter",
349
Name
= "parameter",
387
Name
= "parameter",
441
Name
= "parameter",
479
Name
= "parameter",
528
Name
= "parameter",
565
Name
= "parameter",
629
Name
= "parameter",
653
Name
= "parameter",
686
Name
= "parameter",
723
Name
= "parameter",
774
Name
= "parameter",
811
Name
= "parameter",
851
Name
= "parameter",
909
Name
= "parameter",
946
Name
= "parameter",
1016
Name
= "parameter",
1053
Name
= "parameter",
1104
Name
= "parameter",
1141
Name
= "parameter",
1181
Name
= "parameter",
1221
Name
= "parameter",
1261
Name
= "parameter",
1352
Name
= "parameter",
1401
Name
= "parameter",
1440
Name
= "parameter",
1473
Name
= "parameter",
1504
Name
= "parameter",
1573
Name
= "parameter",
1610
Name
= "parameter",
1663
Name
= "parameter",
1727
Name
= "parameter",
1779
Name
= "Parameter1",
1834
Name
= "cancellationToken",
1870
Name
= "Parameter1",
1916
Name
= "Parameter1",
1970
Name
= "parameter",
2030
Name
= parameterInfo.Name,
2082
Name
= parameterInfo.Name,
2152
Name
= parameterInfo.Name,
2214
Name
= "parameter",
2261
Name
= "parameter",
2318
Name
= propertyInfo.Name,
2372
Name
= propertyInfo.Name,
2424
Name
= "parameter",
2476
Name
= parameterInfo.Name,
2527
Name
= parameterInfo.Name,
ValidationWithRecordIntegrationTests.cs (54)
40
Name
= "accountId",
45
Name
= "transferInfo",
57
Name
= "transferInfo",
66
Name
= "accountId",
158
Name
= "parameter",
195
Name
= "parameter",
239
Name
= "parameter",
277
Name
= "parameter",
321
Name
= "parameter",
359
Name
= "parameter",
406
Name
= "parameter",
444
Name
= "parameter",
487
Name
= "parameter",
524
Name
= "parameter",
569
Name
= "parameter",
606
Name
= "parameter",
650
Name
= "parameter",
687
Name
= "parameter",
727
Name
= "parameter",
778
Name
= "parameter",
815
Name
= "parameter",
878
Name
= "parameter",
915
Name
= "parameter",
962
Name
= "parameter",
999
Name
= "parameter",
1039
Name
= "parameter",
1073
Name
= "parameter",
1113
Name
= "parameter",
1196
Name
= "parameter",
1245
Name
= "parameter",
1284
Name
= "parameter",
1317
Name
= "parameter",
1381
Name
= "parameter",
1418
Name
= "parameter",
1469
Name
= "parameter",
1530
Name
= "parameter",
1582
Name
= "Parameter1",
1637
Name
= "cancellationToken",
1673
Name
= "Parameter1",
1719
Name
= "Parameter1",
1769
Name
= "parameter",
1821
Name
= parameterInfo.Name,
1873
Name
= parameterInfo.Name,
1943
Name
= parameterInfo.Name,
2005
Name
= "parameter",
2052
Name
= "parameter",
2109
Name
= propertyInfo.Name,
2160
Name
= propertyInfo.Name,
2212
Name
= "parameter",
2262
Name
= parameterInfo.Name,
2314
Name
= "parameter",
2353
Name
= "parameter",
2394
Name
= "parameter",
2429
Name
= "parameter",
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (2)
109
Name
= parameterModel.ParameterName,
136
Name
= propertyModel.PropertyName,
Microsoft.AspNetCore.Mvc.RazorPages.Test (15)
Infrastructure\ExecutorFactoryTest.cs (1)
211
Name
= p.Name,
Infrastructure\PageBinderFactoryTest.cs (14)
188
Name
= nameof(PageWithProperty.Id),
194
Name
= nameof(PageWithProperty.RouteDifferentValue),
200
Name
= nameof(PageWithProperty.PropertyWithNoValue),
246
Name
= nameof(PageModelWithProperty.Id),
252
Name
= nameof(PageModelWithProperty.RouteDifferentValue),
258
Name
= nameof(PageModelWithProperty.PropertyWithNoValue),
312
Name
= nameof(PageModelWithDefaultValue.PropertyWithDefaultValue),
360
Name
= nameof(PageModelWithSupportsGetProperty.SupportsGet),
371
Name
= nameof(PageModelWithSupportsGetProperty.Default),
420
Name
= nameof(PageModelWithSupportsGetProperty.SupportsGet),
430
Name
= nameof(PageModelWithSupportsGetProperty.Default),
481
Name
= nameof(PageModelWithBindNeverProperty.BindNeverProperty),
528
Name
= nameof(PageModelWithValidation.Validated),
774
Name
= parameterInfo.Name
Microsoft.AspNetCore.OpenApi.Tests (2)
Services\OpenApiDocumentServiceTestsBase.cs (2)
206
Name
= property.Name,
242
Name
= parameter.Name,
57 references to Name
FormatterWebSite (2)
ValidateBodyParameterAttribute.cs (2)
24
var parameterBindingErrors = context.ModelState[bodyParameter.
Name
]?.Errors ??
31
ParameterName = bodyParameter.
Name
,
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
DefaultApiDescriptionProvider.cs (3)
191
propertyName: actionParameter.
Name
);
203
propertyName: actionParameter.
Name
);
208
propertyName: actionParameter.
Name
);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (2)
EndpointMetadataApiDescriptionProviderTest.cs (2)
816
Assert.Equal("name", nameParam.ParameterDescriptor.
Name
);
1513
Assert.Equal(expectedName, parameter.ParameterDescriptor.
Name
);
Microsoft.AspNetCore.Mvc.Core (10)
Controllers\ControllerBinderDelegateProvider.cs (2)
84
arguments[parameter.
Name
] = result.Model;
178
var metadata = modelMetadataProvider.GetMetadataForProperty(controllerType, property.
Name
);
ModelBinding\ParameterBinder.cs (3)
112
parameter.
Name
);
121
else if (modelBindingContext.ValueProvider.ContainsPrefix(parameter.
Name
))
124
modelBindingContext.ModelName = parameter.
Name
;
ModelBinding\ParameterBinder.Log.cs (5)
49
AttemptingToBindParameter(logger, parameter.
Name
, modelMetadata.ModelType);
95
DoneAttemptingToBindParameter(logger, parameter.
Name
, modelMetadata.ModelType);
142
AttemptingToValidateParameter(logger, parameter.
Name
, modelMetadata.ModelType);
192
DoneAttemptingToValidateParameter(logger, parameter.
Name
, modelMetadata.ModelType);
239
ParameterBinderRequestPredicateShortCircuitOfParameter(logger, parameter.
Name
);
Microsoft.AspNetCore.Mvc.Core.Test (16)
ApplicationModels\ControllerActionDescriptorBuilderTest.cs (1)
53
Assert.Equal("BoundProperty", property.
Name
);
ApplicationModels\ControllerActionDescriptorProviderTests.cs (13)
129
Assert.Equal("id", id.
Name
);
146
var id = Assert.Single(main.Parameters, p => p.
Name
== "id");
148
Assert.Equal("id", id.
Name
);
152
var entity = Assert.Single(main.Parameters, p => p.
Name
== "entity");
154
Assert.Equal("entity", entity.
Name
);
171
var id = Assert.Single(main.Parameters, p => p.
Name
== "id");
173
Assert.Equal("id", id.
Name
);
177
var upperCaseId = Assert.Single(main.Parameters, p => p.
Name
== "ID");
179
Assert.Equal("ID", upperCaseId.
Name
);
183
var pascalCaseId = Assert.Single(main.Parameters, p => p.
Name
== "Id");
185
Assert.Equal("Id", pascalCaseId.
Name
);
206
Assert.Equal("entity", entity.
Name
);
227
Assert.Equal("entity", entity.
Name
);
Controllers\ControllerBinderDelegateProviderTest.cs (2)
1154
if (descriptor.
Name
== "accountId")
1158
else if (descriptor.
Name
== "transferInfo")
Microsoft.AspNetCore.Mvc.IntegrationTests (16)
ActionParametersIntegrationTest.cs (7)
644
request.QueryString = QueryString.Create(parameter.
Name
, "123");
721
request.QueryString = QueryString.Create(parameter.
Name
, input.Value.ToString(CultureInfo.InvariantCulture));
774
request.QueryString = QueryString.Create(parameter.
Name
, input);
799
Assert.Contains(displayName ?? parameter.
Name
, message);
861
var key = ModelNames.CreatePropertyModelName(parameter.
Name
, nameof(ModelWithIValidatableObject.FirstName));
881
var entry = modelState[parameter.
Name
];
886
entry = modelState[ModelNames.CreatePropertyModelName(parameter.
Name
, nameof(ModelWithIValidatableObject.FirstName))];
BindPropertyIntegrationTest.cs (9)
117
request.QueryString = new QueryString($"?{parameter.
Name
}=Joey");
122
.GetMetadataForProperty(typeof(TestController), parameter.
Name
);
156
request.QueryString = new QueryString($"?{parameter.
Name
}={input.Value}");
162
.GetMetadataForProperty(typeof(TestController), parameter.
Name
);
212
request.QueryString = new QueryString($"?{propertyDescriptor.
Name
}={input.Value}");
220
.GetMetadataForProperty(typeof(TestPage), propertyDescriptor.
Name
);
275
request.QueryString = new QueryString($"?{parameter.
Name
}={input}");
281
.GetMetadataForProperty(typeof(TestController), parameter.
Name
);
296
Assert.Contains(displayName ?? parameter.
Name
, message);
Microsoft.AspNetCore.Mvc.RazorPages (2)
Infrastructure\PageBinderFactory.cs (2)
33
var metadata = modelMetadataProvider.GetMetadataForProperty(handlerType, property.
Name
);
157
arguments[parameter.
Name
] = result.Model;
Microsoft.AspNetCore.Mvc.RazorPages.Test (5)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (4)
93
Assert.Equal(pageApplicationModel.HandlerProperties.Select(p => p.PropertyName), actual.BoundProperties.Select(p => p.
Name
));
290
Assert.Equal(parameterModel1.ParameterName, p.
Name
);
336
Assert.Same(propertyModel.PropertyName, p.
Name
);
385
Assert.Same(propertyModel1.PropertyName, p.
Name
);
Infrastructure\PageBinderFactoryTest.cs (1)
832
if (_args.TryGetValue(parameter.
Name
, out var result))
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiDocumentService.cs (1)
512
var groupedFormParameters = formParameters.GroupBy(parameter => parameter.ParameterDescriptor.
Name
);