22 instantiations of ValidationMessageStore
Microsoft.AspNetCore.Components.Forms (1)
EditContextDataAnnotationsExtensions.cs (1)
72_messages = new ValidationMessageStore(_editContext);
Microsoft.AspNetCore.Components.Forms.Tests (13)
EditContextTest.cs (7)
130var store1 = new ValidationMessageStore(editContext); 131var store2 = new ValidationMessageStore(editContext); 160var store1 = new ValidationMessageStore(editContext); 161var store2 = new ValidationMessageStore(editContext); 201var messages = new ValidationMessageStore(editContext); 218var messages = new ValidationMessageStore(editContext); 241var messages = new ValidationMessageStore(editContext);
ValidationMessageStoreTest.cs (6)
11var ex = Assert.Throws<ArgumentNullException>(() => new ValidationMessageStore(null)); 18new ValidationMessageStore(new EditContext(new object())); 25var messages = new ValidationMessageStore(new EditContext(new object())); 45var messages = new ValidationMessageStore(new EditContext(new object())); 60var messages = new ValidationMessageStore(new EditContext(new object())); 79var messages = new ValidationMessageStore(new EditContext(new object()));
Microsoft.AspNetCore.Components.Web (2)
Forms\InputBase.cs (1)
139_parsingValidationMessages ??= new ValidationMessageStore(EditContext);
Forms\Mapping\EditContextFormMappingExtensions.cs (1)
59_messages = new ValidationMessageStore(_editContext);
Microsoft.AspNetCore.Components.Web.Tests (6)
Forms\InputBaseTest.cs (6)
220var messages = new ValidationMessageStore(rootComponent.EditContext); 388var messageStore = new ValidationMessageStore(rootComponent.EditContext); 418var messageStore = new ValidationMessageStore(rootComponent.EditContext); 440var messageStore = new ValidationMessageStore(invalidContext); 475var messageStore = new ValidationMessageStore(invalidContext); 505var messageStore = new ValidationMessageStore(rootComponent.EditContext);
34 references to ValidationMessageStore
Aspire.Dashboard (1)
Components\Pages\Login.razor.cs (1)
18private ValidationMessageStore? _messageStore;
Microsoft.AspNetCore.Components.Forms (14)
EditContextDataAnnotationsExtensions.cs (1)
66private readonly ValidationMessageStore _messages;
FieldState.cs (5)
14private HashSet<ValidationMessageStore>? _validationMessageStores; 27foreach (var store in _validationMessageStores) 37public void AssociateWithValidationMessageStore(ValidationMessageStore validationMessageStore) 41_validationMessageStores = new HashSet<ValidationMessageStore>(); 47public void DissociateFromValidationMessageStore(ValidationMessageStore validationMessageStore)
ValidationMessageStore.cs (8)
17/// Creates an instance of <see cref="ValidationMessageStore"/>. 58/// Gets the validation messages within this <see cref="ValidationMessageStore"/> for the specified field. 63/// <returns>The validation messages for the specified field within this <see cref="ValidationMessageStore"/>.</returns> 68/// Gets the validation messages within this <see cref="ValidationMessageStore"/> for the specified field. 73/// <returns>The validation messages for the specified field within this <see cref="ValidationMessageStore"/>.</returns> 78/// Removes all messages within this <see cref="ValidationMessageStore"/>. 91/// Removes all messages within this <see cref="ValidationMessageStore"/> for the specified field. 98/// Removes all messages within this <see cref="ValidationMessageStore"/> for the specified field.
Microsoft.AspNetCore.Components.Forms.Tests (11)
EditContextTest.cs (7)
130var store1 = new ValidationMessageStore(editContext); 131var store2 = new ValidationMessageStore(editContext); 160var store1 = new ValidationMessageStore(editContext); 161var store2 = new ValidationMessageStore(editContext); 201var messages = new ValidationMessageStore(editContext); 218var messages = new ValidationMessageStore(editContext); 241var messages = new ValidationMessageStore(editContext);
ValidationMessageStoreTest.cs (4)
25var messages = new ValidationMessageStore(new EditContext(new object())); 45var messages = new ValidationMessageStore(new EditContext(new object())); 60var messages = new ValidationMessageStore(new EditContext(new object())); 79var messages = new ValidationMessageStore(new EditContext(new object()));
Microsoft.AspNetCore.Components.Web (2)
Forms\InputBase.cs (1)
25private ValidationMessageStore? _parsingValidationMessages;
Forms\Mapping\EditContextFormMappingExtensions.cs (1)
39private ValidationMessageStore? _messages;
Microsoft.AspNetCore.Components.Web.Tests (6)
Forms\InputBaseTest.cs (6)
220var messages = new ValidationMessageStore(rootComponent.EditContext); 388var messageStore = new ValidationMessageStore(rootComponent.EditContext); 418var messageStore = new ValidationMessageStore(rootComponent.EditContext); 440var messageStore = new ValidationMessageStore(invalidContext); 475var messageStore = new ValidationMessageStore(invalidContext); 505var messageStore = new ValidationMessageStore(rootComponent.EditContext);