2 instantiations of EditForm
Microsoft.AspNetCore.Components.Web.Tests (2)
Forms\EditFormTest.cs (2)
33
var editForm = new
EditForm
51
var editForm = new
EditForm
();
23 references to EditForm
Microsoft.AspNetCore.Components.Web (8)
Forms\EditForm.cs (5)
21
/// Constructs an instance of <see cref="
EditForm
"/>.
66
/// Specifies the content to be rendered inside this <see cref="
EditForm
"/>.
103
throw new InvalidOperationException($"{nameof(
EditForm
)} requires a {nameof(Model)} " +
108
throw new InvalidOperationException($"{nameof(
EditForm
)} requires either a {nameof(Model)} " +
119
$"{nameof(
EditForm
)}, do not also supply {nameof(OnValidSubmit)} or {nameof(OnInvalidSubmit)}.");
Forms\InputBase.cs (1)
65
/// This property is uninitialized if the input does not have a parent <see cref="
EditForm
"/>.
Forms\ValidationMessage.cs (1)
46
$"an {nameof(
EditForm
)}.");
Forms\ValidationSummary.cs (1)
48
$"an {nameof(
EditForm
)}.");
Microsoft.AspNetCore.Components.Web.Tests (15)
Forms\EditFormTest.cs (15)
33
var
editForm = new EditForm
44
Assert.StartsWith($"{nameof(
EditForm
)} requires a {nameof(
EditForm
.Model)} parameter, or an {nameof(EditContext)} parameter, but not both.", ex.Message);
51
var
editForm = new EditForm();
58
Assert.StartsWith($"{nameof(
EditForm
)} requires either a {nameof(
EditForm
.Model)} parameter, or an {nameof(EditContext)} parameter, please provide one of these.", ex.Message);
70
var
editFormComponent = await RenderAndGetTestEditFormComponentAsync(rootComponent);
91
var
editFormComponent = await RenderAndGetTestEditFormComponentAsync(rootComponent);
114
.GetComponentFrames<
EditForm
>().Single().ComponentId;
145
.GetComponentFrames<
EditForm
>().Single().ComponentId;
195
.GetComponentFrames<
EditForm
>().Single().ComponentId;
207
private static
EditForm
FindEditFormComponent(CapturedBatch batch)
211
.OfType<
EditForm
>()
214
private async Task<
EditForm
> RenderAndGetTestEditFormComponentAsync(TestEditFormHostComponent hostComponent)
256
builder.OpenComponent<
EditForm
>(0);