53 references to Keys
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelStateDictionary.cs (1)
145
IEnumerable<string> IReadOnlyDictionary<string, ModelStateEntry?>.Keys =>
Keys
;
Microsoft.AspNetCore.Mvc.Abstractions.Test (6)
ModelBinding\ModelStateDictionaryTest.cs (6)
774
Assert.DoesNotContain("key5", dictionary.
Keys
);
803
Assert.DoesNotContain("key3", dictionary.
Keys
);
844
Assert.DoesNotContain("key3", dictionary.
Keys
);
847
Assert.DoesNotContain("key4", dictionary.
Keys
);
1482
var keys = dictionary.
Keys
;
1502
var keys = dictionary.
Keys
;
Microsoft.AspNetCore.Mvc.Core.Test (2)
ModelBinding\ModelBindingHelperTest.cs (1)
759
foreach (var entry in dictionary.
Keys
)
ModelBinding\Validation\DefaultObjectValidatorTests.cs (1)
1483
Assert.Equal<string>(keys.OrderBy(k => k).ToList(), modelState.
Keys
.OrderBy(k => k).ToList());
Microsoft.AspNetCore.Mvc.IntegrationTests (43)
ActionParametersIntegrationTest.cs (6)
67
var key = Assert.Single(modelState.
Keys
);
161
var key = Assert.Single(modelState.
Keys
);
207
Assert.Empty(modelState.
Keys
);
247
var key = Assert.Single(modelState.
Keys
);
338
var key = Assert.Single(modelState.
Keys
);
383
Assert.Empty(modelState.
Keys
);
BinderTypeBasedModelBinderIntegrationTest.cs (3)
116
var key = Assert.Single(modelState.
Keys
);
271
var key = Assert.Single(modelState.
Keys
);
310
var key = Assert.Single(modelState.
Keys
);
BodyValidationIntegrationTests.cs (1)
388
var key = Assert.Single(modelState.
Keys
);
ByteArrayModelBinderIntegrationTest.cs (1)
99
Assert.Empty(modelState.
Keys
);
CancellationTokenModelBinderIntegrationTest.cs (1)
53
Assert.Empty(modelState.
Keys
);
FormFileModelBindingIntegrationTest.cs (3)
67
Assert.Single(modelState.
Keys
, k => k == "Address.Zip");
68
var key = Assert.Single(modelState.
Keys
, k => k == "Address.File");
685
Assert.Empty(modelState.
Keys
);
HeaderModelBinderIntegrationTest.cs (1)
60
var key = Assert.Single(modelState.
Keys
);
ServicesModelBinderIntegrationTest.cs (3)
48
Assert.Empty(modelState.
Keys
);
225
Assert.Empty(modelState.
Keys
);
294
Assert.Empty(modelState.
Keys
);
SimpleTypeModelBinderIntegrationTest.cs (24)
58
Assert.Single(modelState.
Keys
);
59
var key = Assert.Single(modelState.
Keys
, k => k == "CustomParameter.Address.Zip");
102
Assert.Single(modelState.
Keys
);
103
var key = Assert.Single(modelState.
Keys
, k => k == "Address.Zip");
145
Assert.Single(modelState.
Keys
);
146
var key = Assert.Single(modelState.
Keys
);
184
Assert.Empty(modelState.
Keys
);
222
Assert.Single(modelState.
Keys
);
223
var key = Assert.Single(modelState.
Keys
);
266
Assert.Single(modelState.
Keys
);
267
var key = Assert.Single(modelState.
Keys
);
351
Assert.Single(modelState.
Keys
);
352
var key = Assert.Single(modelState.
Keys
);
396
var key = Assert.Single(modelState.
Keys
);
456
var key = Assert.Single(modelState.
Keys
);
502
var key = Assert.Single(modelState.
Keys
);
556
var key = Assert.Single(modelState.
Keys
);
599
var key = Assert.Single(modelState.
Keys
);
634
Assert.Empty(modelState.
Keys
);
696
Assert.Equal(new[] { "Address.Lines", "Address.Zip", "Name" }, modelState.
Keys
.OrderBy(p => p).ToArray());
740
Assert.Single(modelState.
Keys
);
741
var key = Assert.Single(modelState.
Keys
);
784
Assert.Single(modelState.
Keys
);
785
var key = Assert.Single(modelState.
Keys
);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
ValidationSummaryTagHelperTest.cs (1)
673
foreach (var key in modelState.
Keys
)