41 references to FieldIdentifier
Microsoft.AspNetCore.Components.Forms (3)
EditContext.cs (1)
57
=> new
FieldIdentifier
(Model, fieldName);
EditContextDataAnnotationsExtensions.cs (1)
134
_messages.Add(new
FieldIdentifier
(_editContext.Model, fieldName: string.Empty), validationResult.ErrorMessage!);
FieldIdentifier.cs (1)
36
return new
FieldIdentifier
(model, fieldName);
Microsoft.AspNetCore.Components.Forms.Tests (36)
EditContextDataAnnotationsExtensionsTest.cs (2)
114
var requiredStringIdentifier = new
FieldIdentifier
(model, nameof(TestModel.RequiredString));
115
var intFrom1To100Identifier = new
FieldIdentifier
(model, nameof(TestModel.IntFrom1To100));
EditContextTest.cs (9)
50
var fieldOnOtherModel = new
FieldIdentifier
(new object(), "field on other model");
109
var field1 = new
FieldIdentifier
(new object(), "fieldname"); // Shows it can be on a different model
132
var field = new
FieldIdentifier
(new object(), "field");
133
var fieldWithNoState = new
FieldIdentifier
(new object(), "field with no state");
136
store1.Add(new
FieldIdentifier
(new object(), "otherfield"), "Message for other field that should not appear in results");
162
var field1 = new
FieldIdentifier
(new object(), "field1");
163
var field2 = new
FieldIdentifier
(new object(), "field2");
203
new
FieldIdentifier
(new object(), "some field"),
224
new
FieldIdentifier
(new object(), "some field"),
FieldIdentifierTest.cs (17)
15
var ex = Assert.Throws<ArgumentNullException>(() => new
FieldIdentifier
(null, "somefield"));
22
var ex = Assert.Throws<ArgumentException>(() => new
FieldIdentifier
(DateTime.Now, "somefield"));
30
var ex = Assert.Throws<ArgumentNullException>(() => new
FieldIdentifier
(new object(), null));
37
var fieldIdentifier = new
FieldIdentifier
(new object(), string.Empty);
46
var fieldIdentifier = new
FieldIdentifier
(model, "someField");
57
var fieldIdentifier1 = new
FieldIdentifier
(new object(), "field");
58
var fieldIdentifier2 = new
FieldIdentifier
(new object(), "field");
70
var fieldIdentifier1 = new
FieldIdentifier
(model, "field1");
71
var fieldIdentifier2 = new
FieldIdentifier
(model, "field2");
83
var fieldIdentifier1 = new
FieldIdentifier
(model, fieldName: string.Empty);
84
var fieldIdentifier2 = new
FieldIdentifier
(model, fieldName: string.Empty);
96
var fieldIdentifier1 = new
FieldIdentifier
(model, "field");
97
var fieldIdentifier2 = new
FieldIdentifier
(model, "field");
109
var fieldIdentifier1 = new
FieldIdentifier
(model, nameof(EquatableModel.Property));
111
var fieldIdentifier2 = new
FieldIdentifier
(model, nameof(EquatableModel.Property));
123
var fieldIdentifierLower = new
FieldIdentifier
(model, "field");
124
var fieldIdentifierPascal = new
FieldIdentifier
(model, "Field");
ValidationMessageStoreTest.cs (8)
26
var field1 = new
FieldIdentifier
(new object(), "field1");
27
var field2 = new
FieldIdentifier
(new object(), "field2");
28
var field3 = new
FieldIdentifier
(new object(), "field3");
46
var field1 = new
FieldIdentifier
(new object(), "field1");
61
var field1 = new
FieldIdentifier
(new object(), "field1");
62
var field2 = new
FieldIdentifier
(new object(), "field2");
80
var field1 = new
FieldIdentifier
(new object(), "field1");
81
var field2 = new
FieldIdentifier
(new object(), "field2");
Microsoft.AspNetCore.Components.Web (2)
Forms\Mapping\EditContextFormMappingExtensions.cs (1)
67
fieldIdentifier = new
FieldIdentifier
(owner ?? _editContext.Model, key);
Forms\ValidationSummary.cs (1)
66
CurrentEditContext.GetValidationMessages(new
FieldIdentifier
(Model, string.Empty));