60 references to Component
Microsoft.AspNetCore.Components (1)
RenderTree\RenderTreeDiffBuilder.cs (1)
1001
var componentInstance = parentFrame.
Component
;
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
TestFiles\ComponentInternalUsageDiagnosticsAnalyzerTest\UsersRendererTypesInMethodBody.cs (1)
17
GC.KeepAlive(/*MMProperty*/frame.
Component
);
Microsoft.AspNetCore.Components.Authorization.Tests (5)
AuthorizeRouteViewTest.cs (2)
287
.Select(f => f.
Component
);
316
.Select(f => f.
Component
);
CascadingAuthenticationStateTest.cs (1)
88
var receiveAuthStateComponent = (ReceiveAuthStateComponent)receiveAuthStateFrame.
Component
;
src\Components\Shared\test\AssertFrame.cs (1)
98
Assert.IsType<T>(frame.
Component
);
src\Components\Shared\test\CapturedBatch.cs (1)
20
=> ReferenceFrames.Where(f => f.FrameType == RenderTreeFrameType.Component && f.
Component
is T);
Microsoft.AspNetCore.Components.Forms.Tests (2)
src\Components\Shared\test\AssertFrame.cs (1)
98
Assert.IsType<T>(frame.
Component
);
src\Components\Shared\test\CapturedBatch.cs (1)
20
=> ReferenceFrames.Where(f => f.FrameType == RenderTreeFrameType.Component && f.
Component
is T);
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
TestFiles\ComponentInternalUsageDiagnosticsAnalyzerTest\UsersRendererTypesInMethodBody.cs (1)
17
GC.KeepAlive(/*MMProperty*/frame.
Component
);
Microsoft.AspNetCore.Components.Tests (40)
CascadingParameterTest.cs (2)
902
&& frame.
Component
is T);
904
return (T)componentFrame.
Component
;
RendererTest.cs (24)
83
Assert.IsType<MessageComponent>(componentFrame.
Component
);
145
var nestedComponent = (MessageComponent)nestedComponentFrame.
Component
;
800
var nestedComponent = (EventComponent)nestedComponentFrame.
Component
;
972
var nestedComponent = (EventComponent)nestedComponentFrame.
Component
;
2050
var nestedComponentInstance = (MessageComponent)nestedComponentFrame.
Component
;
2091
var childComponentInstance = (FakeComponent)originalComponentFrame.
Component
;
2246
.Single().
Component
;
2860
.Single(f => f.
Component
is EventComponent);
2862
childComponent = (EventComponent)childComponentFrame.
Component
;
3423
edit => (AfterRenderCaptureComponent)batch1.ReferenceFrames[edit.ReferenceFrameIndex].
Component
)
4221
var nestedComponent = Assert.IsType<DisposableComponent>(componentFrame.
Component
);
4453
var capturingComponent = (ParameterViewIllegalCapturingComponent)renderer.GetCurrentRenderTreeFrames(rootComponentId).Array[0].
Component
;
4484
var capturingComponent = (ImplicitConversionComponent)renderer.GetCurrentRenderTreeFrames(rootComponentId).Array[0].
Component
;
4564
Assert.Collection(componentFrames.Select(f => (TestErrorBoundary)f.
Component
),
4590
.Select(f => (TestErrorBoundary)f.
Component
);
4627
.Select(f => (TestErrorBoundary)f.
Component
).ToArray();
4665
.Select(f => (TestErrorBoundary)f.
Component
);
4704
.Select(f => (TestErrorBoundary)f.
Component
);
4753
.Select(f => (TestErrorBoundary)f.
Component
);
4822
Assert.True(((DisposableComponent)nestedDisposableComponentFrame.
Component
).Disposed);
4823
Assert.True(((AsyncDisposableComponent)nestedAsyncDisposableComponentFrame.
Component
).Disposed);
4878
var nestedComponent = (DisposableComponent)nestedComponentFrame.
Component
;
5085
var resolvedComponent = (MessageComponent)componentFrames.Single().
Component
;
5110
var resolvedComponent = (MessageComponent)componentFrames.Single().
Component
;
RenderTreeDiffBuilderTest.cs (12)
1597
var componentInstance = newTree.GetFrames().AsEnumerable().First().
Component
as FakeComponent;
1631
var originalFakeComponentInstance = oldTree.GetFrames().Array[2].
Component
;
1632
var originalFakeComponent2Instance = oldTree.GetFrames().Array[3].
Component
;
1643
Assert.Same(originalFakeComponentInstance, newFrame1.
Component
);
1644
Assert.Same(originalFakeComponent2Instance, newFrame2.
Component
);
1717
var originalComponentInstance = (FakeComponent)oldTree.GetFrames().Array[0].
Component
;
1721
var newComponentInstance = (FakeComponent)oldTree.GetFrames().Array[0].
Component
;
1772
var originalComponentInstance = (CaptureSetParametersComponent)oldTree.GetFrames().Array[0].
Component
;
1777
var newComponentInstance = (CaptureSetParametersComponent)oldTree.GetFrames().Array[0].
Component
;
1802
var componentInstance = (CaptureSetParametersComponent)oldTree.GetFrames().Array[0].
Component
;
1937
Assert.Same(capturedInstance1, frame.
Component
);
2439
.Select(x => (T)x.
Component
)
src\Components\Shared\test\AssertFrame.cs (1)
98
Assert.IsType<T>(frame.
Component
);
src\Components\Shared\test\CapturedBatch.cs (1)
20
=> ReferenceFrames.Where(f => f.FrameType == RenderTreeFrameType.Component && f.
Component
is T);
Microsoft.AspNetCore.Components.Web.Tests (10)
Forms\EditFormTest.cs (1)
210
.Select(f => f.
Component
)
Forms\InputBaseTest.cs (5)
383
var component = (TestInputComponent<string>)componentFrame1.
Component
;
414
var component = renderer.Batches.Single().GetComponentFrames<TestInputComponent<string>>().Single().
Component
;
451
var component = (TestInputComponent<string>)componentFrame1.
Component
;
486
var component = (TestInputComponent<string>)componentFrame1.
Component
;
514
var component = (TestInputComponent<string>)componentFrame1.
Component
;
Forms\InputRadioTest.cs (1)
108
.Select(f => f.
Component
)
Forms\InputRenderer.cs (1)
23
.Select(f => f.
Component
)
src\Components\Shared\test\AssertFrame.cs (1)
98
Assert.IsType<T>(frame.
Component
);
src\Components\Shared\test\CapturedBatch.cs (1)
20
=> ReferenceFrames.Where(f => f.FrameType == RenderTreeFrameType.Component && f.
Component
is T);