11 references to GetValidationMessages
Microsoft.AspNetCore.Components.Forms (1)
EditContext.cs (1)
220
return !
GetValidationMessages
().Any();
Microsoft.AspNetCore.Components.Forms.Tests (9)
EditContextDataAnnotationsExtensionsTest.cs (6)
50
editContext.
GetValidationMessages
());
122
Assert.Equal(new[] { "RequiredString:required" }, editContext.
GetValidationMessages
());
134
editContext.
GetValidationMessages
());
139
Assert.Equal(new[] { "IntFrom1To100:range" }, editContext.
GetValidationMessages
());
175
Assert.NotEmpty(editContext.
GetValidationMessages
());
180
Assert.Empty(editContext.
GetValidationMessages
());
EditContextTest.cs (3)
176
}, editContext.
GetValidationMessages
().OrderBy(x => x)); // Sort because the order isn't defined
180
Assert.Equal(new[] { "Store 2 field 1 message 1", }, editContext.
GetValidationMessages
());
233
Assert.Equal(new[] { "Some message" }, editContext.
GetValidationMessages
());
Microsoft.AspNetCore.Components.Web (1)
Forms\ValidationSummary.cs (1)
65
CurrentEditContext.
GetValidationMessages
() :