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