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