6 instantiations of TestModel
Microsoft.AspNetCore.Components.Forms.Tests (6)
EditContextDataAnnotationsExtensionsTest.cs (6)
35
var model = new
TestModel
{ IntFrom1To100 = 101 };
65
var model = new
TestModel
{ IntFrom1To100 = 101 };
82
var model = new
TestModel
{ IntFrom1To100 = 101 };
109
var model = new
TestModel
{ IntFrom1To100 = 101 };
151
var editContext = new EditContext(new
TestModel
());
169
var model = new
TestModel
{ IntFrom1To100 = 101 };
12 references to TestModel
Microsoft.AspNetCore.Components.Forms.Tests (12)
EditContextDataAnnotationsExtensionsTest.cs (12)
35
var
model = new TestModel { IntFrom1To100 = 101 };
53
editContext.GetValidationMessages(editContext.Field(nameof(
TestModel
.RequiredString))));
58
editContext.GetValidationMessages(editContext.Field(nameof(
TestModel
.IntFrom1To100))));
65
var
model = new TestModel { IntFrom1To100 = 101 };
82
var
model = new TestModel { IntFrom1To100 = 101 };
109
var
model = new TestModel { IntFrom1To100 = 101 };
114
var requiredStringIdentifier = new FieldIdentifier(model, nameof(
TestModel
.RequiredString));
115
var intFrom1To100Identifier = new FieldIdentifier(model, nameof(
TestModel
.IntFrom1To100));
143
[InlineData(nameof(
TestModel
.ThisWillNotBeValidatedBecauseItIsAField))]
144
[InlineData(nameof(
TestModel
.ThisWillNotBeValidatedBecauseItIsInternal))]
161
editContext.NotifyFieldChanged(editContext.Field(nameof(
TestModel
.RequiredString)));
169
var
model = new TestModel { IntFrom1To100 = 101 };