27 references to GetComponentFrames
Microsoft.AspNetCore.Components.Tests (27)
LayoutViewTest.cs (4)
75
var rootLayoutComponentId = batch.
GetComponentFrames
<RootLayout>().Single().ComponentId;
105
var rootLayoutComponentId = batch.
GetComponentFrames
<RootLayout>().Single().ComponentId;
137
var rootLayoutComponentId = batch.
GetComponentFrames
<RootLayout>().Single().ComponentId;
146
var nestedLayoutComponentId = batch.
GetComponentFrames
<NestedLayout>().Single().ComponentId;
RendererTest.cs (19)
4562
var errorThrowingComponentId = batch.
GetComponentFrames
<ErrorThrowingComponent>().Single().ComponentId;
4563
var componentFrames = batch.
GetComponentFrames
<TestErrorBoundary>();
4589
var errorBoundaries = renderer.Batches.Single().
GetComponentFrames
<TestErrorBoundary>()
4592
.
GetComponentFrames
<ErrorThrowingComponent>().Single().ComponentId;
4626
var errorBoundaries = renderer.Batches.Single().
GetComponentFrames
<TestErrorBoundary>()
4629
.
GetComponentFrames
<ErrorThrowingComponent>().Single().ComponentId;
4664
var errorBoundaries = renderer.Batches.Single().
GetComponentFrames
<TestErrorBoundary>()
4667
.
GetComponentFrames
<ErrorThrowingComponent>().Single().ComponentId;
4703
var errorBoundaries = renderer.Batches.Single().
GetComponentFrames
<TestErrorBoundary>()
4706
.
GetComponentFrames
<ErrorThrowingComponent>().Single().ComponentId;
4752
var errorBoundaries = renderer.Batches.Single().
GetComponentFrames
<TestErrorBoundary>()
4755
.
GetComponentFrames
<ErrorThrowingComponent>().Single().ComponentId;
4803
.
GetComponentFrames
<DisposableComponent>().Single();
4805
.
GetComponentFrames
<AsyncDisposableComponent>().Single();
4877
.
GetComponentFrames
<DisposableComponent>().Single();
4919
.
GetComponentFrames
<DisposableComponent>().Single();
4921
.
GetComponentFrames
<AsyncDisposableComponent>().Single();
5084
var componentFrames = batch.
GetComponentFrames
<MessageComponent>();
5109
var componentFrames = batch.
GetComponentFrames
<MessageComponent>();
RouteViewTest.cs (3)
69
var layoutViewComponentId = batch.
GetComponentFrames
<LayoutView>().Single().ComponentId;
76
var testLayoutComponentId = batch.
GetComponentFrames
<TestLayout>().Single().ComponentId;
86
var pageComponentId = batch.
GetComponentFrames
<ComponentWithLayout>().Single().ComponentId;
src\Components\Shared\test\CapturedBatch.cs (1)
23
=>
GetComponentFrames
<T>().SelectMany(f => DiffsByComponentId[f.ComponentId]);