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