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