77 references to EditContext
Microsoft.AspNetCore.Components.Forms.Tests (30)
EditContextDataAnnotationsExtensionsTest.cs (7)
24var editContext = new EditContext(new object()); 36var editContext = new EditContext(model); 66var editContext = new EditContext(model); 83var editContext = new EditContext(model); 111var editContext = new EditContext(independentTopLevelModel); 151var editContext = new EditContext(new TestModel()); 170var editContext = new EditContext(model);
EditContextTest.cs (18)
11var ex = Assert.Throws<ArgumentNullException>(() => new EditContext(null)); 19var editContext = new EditContext(model); 28var editContext = new EditContext(model); 39var editContext = new EditContext(new object()); 47var editContext = new EditContext(new object()); 67var editContext = new EditContext(new object()); 89var editContext = new EditContext(new object()); 108var editContext = new EditContext(new object()); 129var editContext = new EditContext(new object()); 159var editContext = new EditContext(new object()); 187var editContext = new EditContext(new object()); 200var editContext = new EditContext(new object()); 217var editContext = new EditContext(new object()); 240var editContext = new EditContext(new object()); 260var editContext = new EditContext(model); 273var editContext = new EditContext(new object()); 297var editContext = new EditContext(new object()); 323var editContext = new EditContext(new object());
ValidationMessageStoreTest.cs (5)
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 (1)
Forms\EditForm.cs (1)
126_editContext = new EditContext(Model!);
Microsoft.AspNetCore.Components.Web.Tests (46)
Forms\EditFormTest.cs (4)
35EditContext = new EditContext(new TestModel()), 86var editContext = new EditContext(new TestModel()) { ShouldUseFieldIdentifiers = createFieldPath }; 134var editContext = new EditContext(new object()); 179var editContext = new EditContext(new object());
Forms\InputBaseTest.cs (21)
16var rootComponent = new TestInputHostComponent<string, TestInputComponent<string>> { EditContext = new EditContext(model), ValueExpression = () => model.StringProperty }; 20rootComponent.EditContext = new EditContext(model); 30var rootComponent = new TestInputHostComponent<string, TestInputComponent<string>> { EditContext = new EditContext(model) }; 44EditContext = new EditContext(model), 63EditContext = new EditContext(model), 82EditContext = new EditContext(model), 101EditContext = new EditContext(model), 140EditContext = new EditContext(model), 163EditContext = new EditContext(model), 185EditContext = new EditContext(model), 206EditContext = new EditContext(model), 244EditContext = new EditContext(model), 265EditContext = new EditContext(model), 283EditContext = new EditContext(model), 313EditContext = new EditContext(model), 347EditContext = new EditContext(model), 371EditContext = new EditContext(model), 407EditContext = new EditContext(model), 431var invalidContext = new EditContext(model); 464var invalidContext = new EditContext(model); 500EditContext = new EditContext(model),
Forms\InputDateTest.cs (2)
15EditContext = new EditContext(model), 41EditContext = new EditContext(model),
Forms\InputNumberTest.cs (3)
30EditContext = new EditContext(model), 56EditContext = new EditContext(model), 74EditContext = new EditContext(model),
Forms\InputRadioTest.cs (4)
19EditContext = new EditContext(model), 33EditContext = new EditContext(model) 52EditContext = new EditContext(model), 67EditContext = new EditContext(model),
Forms\InputSelectTest.cs (10)
15EditContext = new EditContext(model), 34EditContext = new EditContext(model), 53EditContext = new EditContext(model), 72EditContext = new EditContext(model), 92EditContext = new EditContext(model), 113EditContext = new EditContext(model), 134EditContext = new EditContext(model), 154EditContext = new EditContext(model), 173EditContext = new EditContext(model), 199EditContext = new EditContext(model),
Forms\InputTextAreaTest.cs (1)
15EditContext = new EditContext(model),
Forms\InputTextTest.cs (1)
15EditContext = new EditContext(model),