2 instantiations of MessageComponent
Microsoft.AspNetCore.Components.Tests (2)
RendererTest.cs (2)
101
var component = new
MessageComponent
{ Message = "Initial message" };
280
var component = new
MessageComponent
();
28 references to MessageComponent
Microsoft.AspNetCore.Components.Tests (28)
RendererTest.cs (28)
65
builder.OpenComponent<
MessageComponent
>(1);
66
builder.AddComponentParameter(2, nameof(
MessageComponent
.Message), "Nested component output");
83
Assert.IsType<
MessageComponent
>(componentFrame.Component);
101
var
component = new MessageComponent { Message = "Initial message" };
137
builder.OpenComponent<
MessageComponent
>(0);
145
var
nestedComponent = (
MessageComponent
)nestedComponentFrame.Component;
280
var
component = new MessageComponent();
284
[nameof(
MessageComponent
.Message)] = "Hello"
300
[nameof(
MessageComponent
.Message)] = "Goodbye"
2040
builder.OpenComponent<
MessageComponent
>(1);
2050
var
nestedComponentInstance = (
MessageComponent
)nestedComponentFrame.Component;
2116
builder.OpenComponent<
MessageComponent
>(1);
2117
builder.AddComponentParameter(2, nameof(
MessageComponent
.Message), firstRender ? "first" : "second");
4495
var componentActivator = new TestComponentActivator<
MessageComponent
>();
4502
Assert.IsType<
MessageComponent
>(suppliedComponent);
4512
var componentActivator = new TestComponentActivator<
MessageComponent
>();
4520
Assert.IsType<
MessageComponent
>(suppliedComponent);
5074
builder.AddComponentParameter(1, nameof(
MessageComponent
.Message), "Some message");
5084
var componentFrames = batch.GetComponentFrames<
MessageComponent
>();
5085
var
resolvedComponent = (
MessageComponent
)componentFrames.Single().Component;
5098
builder.AddComponentParameter(1, nameof(
MessageComponent
.Message), "Some message");
5109
var componentFrames = batch.GetComponentFrames<
MessageComponent
>();
5110
var
resolvedComponent = (
MessageComponent
)componentFrames.Single().Component;
5146
SubstituteComponentRenderMode => componentActivator.CreateInstance(typeof(
MessageComponent
)),