12 references to HasReachedMaxErrors
Microsoft.AspNetCore.Mvc.Abstractions.Test (8)
ModelBinding\ModelStateDictionaryTest.cs (8)
767Assert.True(dictionary.HasReachedMaxErrors); 819Assert.False(dictionary.HasReachedMaxErrors); 823Assert.False(dictionary.HasReachedMaxErrors); 827Assert.False(dictionary.HasReachedMaxErrors); // Still room for TooManyModelErrorsException. 831Assert.True(dictionary.HasReachedMaxErrors); 835Assert.True(dictionary.HasReachedMaxErrors); 867Assert.True(dictionary.HasReachedMaxErrors); 952var canAdd = dictionary.HasReachedMaxErrors;
Microsoft.AspNetCore.Mvc.Core (3)
ModelBinding\Validation\ValidationVisitor.cs (3)
323if (ModelState.HasReachedMaxErrors) 397if ((isValid || ValidateComplexTypesIfChildValidationFails) && !ModelState.HasReachedMaxErrors) 411if (ModelState.HasReachedMaxErrors)
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Validation\DefaultObjectValidatorTests.cs (1)
1242Assert.True(modelState.HasReachedMaxErrors);