1 write to ReferenceFrames
Microsoft.AspNetCore.Components.Tests (1)
src\Components\Shared\test\TestRenderer.cs (1)
125
capturedBatch.
ReferenceFrames
= renderBatch.ReferenceFrames.AsEnumerable().ToArray();
140 references to ReferenceFrames
Microsoft.AspNetCore.Components.Tests (140)
CascadingParameterTest.cs (18)
44
batch.
ReferenceFrames
[edit.ReferenceFrameIndex],
93
AssertFrame.Text(secondBatch.
ReferenceFrames
[0], "CascadingParameter=Hello; RegularParameter=Changed value");
139
AssertFrame.Text(secondBatch.
ReferenceFrames
[0], "CascadingParameter=Updated value; RegularParameter=Goodbye");
284
firstBatch.
ReferenceFrames
[edit.ReferenceFrameIndex],
428
batch.
ReferenceFrames
[edit.ReferenceFrameIndex],
436
batch.
ReferenceFrames
[edit.ReferenceFrameIndex],
475
batch.
ReferenceFrames
[edit.ReferenceFrameIndex],
511
batch.
ReferenceFrames
[edit.ReferenceFrameIndex],
549
batch.
ReferenceFrames
[edit.ReferenceFrameIndex],
591
firstBatch.
ReferenceFrames
[edit.ReferenceFrameIndex],
610
AssertFrame.Text(secondBatch.
ReferenceFrames
[0], "CascadingParameter=Mutated value; RegularParameter=Goodbye");
626
AssertFrame.Text(thirdBatch.
ReferenceFrames
[0], "CascadingParameter=Whole new object; RegularParameter=Goodbye");
661
firstBatch.
ReferenceFrames
[edit.ReferenceFrameIndex],
674
secondBatch.
ReferenceFrames
[diff2.Edits[0].ReferenceFrameIndex],
686
secondBatch.
ReferenceFrames
[edit.ReferenceFrameIndex],
756
AssertFrame.Text(firstBatch.
ReferenceFrames
[edit.ReferenceFrameIndex], "CascadingParameter=Hello; SingleDeliveryCascadingParameter=Initial single delivery value; RegularParameter=Initial value");
781
AssertFrame.Text(secondBatch.
ReferenceFrames
[0], "CascadingParameter=Hello; SingleDeliveryCascadingParameter=Initial single delivery value; RegularParameter=Changed value");
900
var componentFrame = batch.
ReferenceFrames
.Single(
DynamicComponentTest.cs (7)
60
AssertFrame.Component<TestComponent>(batch.
ReferenceFrames
[0], 2, 0);
61
AssertFrame.Text(batch.
ReferenceFrames
[2], "Hello from TestComponent with IntProp=0", 0);
93
AssertFrame.Component<TestComponent>(batch.
ReferenceFrames
[0], 4, 0);
94
AssertFrame.Attribute(batch.
ReferenceFrames
[1], nameof(TestComponent.IntProp), 123, 1);
95
AssertFrame.Attribute(batch.
ReferenceFrames
[2], nameof(TestComponent.ChildContent), 1);
98
AssertFrame.Text(batch.
ReferenceFrames
[4], "Hello from TestComponent with IntProp=123", 0);
99
AssertFrame.Text(batch.
ReferenceFrames
[5], "This is some child content", 0);
LayoutViewTest.cs (5)
193
batch.
ReferenceFrames
[edit.ReferenceFrameIndex],
240
batch.
ReferenceFrames
[edit.ReferenceFrameIndex],
253
batch.
ReferenceFrames
[edit.ReferenceFrameIndex],
261
batch.
ReferenceFrames
[edit.ReferenceFrameIndex],
269
batch.
ReferenceFrames
[edit.ReferenceFrameIndex],
RendererTest.cs (106)
53
AssertFrame.Element(batch.
ReferenceFrames
[0], "my element", 2);
54
AssertFrame.Text(batch.
ReferenceFrames
[1], "some text");
74
var componentFrame = batch.
ReferenceFrames
91
batch.
ReferenceFrames
[edit.ReferenceFrameIndex],
113
AssertFrame.Text(batch.
ReferenceFrames
[0], "Initial message");
126
AssertFrame.Text(secondBatch.
ReferenceFrames
[0], "Modified message");
143
.
ReferenceFrames
158
AssertFrame.Text(batch.
ReferenceFrames
[0], "Render 1");
171
AssertFrame.Text(secondBatch.
ReferenceFrames
[0], "Render 2");
202
AssertFrame.Element(create.
ReferenceFrames
[0], "p", 2);
203
AssertFrame.Text(create.
ReferenceFrames
[1], "5");
224
AssertFrame.Text(update.
ReferenceFrames
[0], (5 - i).ToString(CultureInfo.InvariantCulture));
295
AssertFrame.Text(batch.
ReferenceFrames
[0], "Hello");
311
AssertFrame.Text(batch2.
ReferenceFrames
[0], "Goodbye");
554
.
ReferenceFrames
584
.
ReferenceFrames
612
.
ReferenceFrames
635
.
ReferenceFrames
658
.
ReferenceFrames
681
.
ReferenceFrames
707
.
ReferenceFrames
738
.
ReferenceFrames
767
.
ReferenceFrames
798
.
ReferenceFrames
807
.
ReferenceFrames
845
.
ReferenceFrames
888
.
ReferenceFrames
931
.
ReferenceFrames
970
.
ReferenceFrames
985
.
ReferenceFrames
1033
.
ReferenceFrames
1077
.
ReferenceFrames
1116
.
ReferenceFrames
1157
.
ReferenceFrames
1199
.
ReferenceFrames
1235
.
ReferenceFrames
1276
.
ReferenceFrames
1318
.
ReferenceFrames
1353
.
ReferenceFrames
1385
.
ReferenceFrames
1419
.
ReferenceFrames
1454
.
ReferenceFrames
1486
.
ReferenceFrames
1521
.
ReferenceFrames
1556
.
ReferenceFrames
1588
.
ReferenceFrames
1623
.
ReferenceFrames
1660
.
ReferenceFrames
1695
.
ReferenceFrames
1733
.
ReferenceFrames
1772
.
ReferenceFrames
1810
.
ReferenceFrames
1851
.
ReferenceFrames
1892
.
ReferenceFrames
1929
.
ReferenceFrames
1969
.
ReferenceFrames
2016
AssertFrame.Text(renderer1Batch.
ReferenceFrames
[edit.ReferenceFrameIndex],
2026
AssertFrame.Text(renderer2Batch.
ReferenceFrames
[edit.ReferenceFrameIndex],
2048
.
ReferenceFrames
2065
AssertFrame.Text(batch.
ReferenceFrames
[0], "Modified message");
2089
.
ReferenceFrames
2125
.
ReferenceFrames
2141
AssertFrame.Text(renderer.Batches[1].
ReferenceFrames
[0], "second");
2163
.
ReferenceFrames
2179
AssertFrame.Attribute(renderer.Batches[1].
ReferenceFrames
[0], "class", "second");
2203
.
ReferenceFrames
2241
.Select(edit => batch.
ReferenceFrames
[edit.ReferenceFrameIndex])
2245
var childComponent3 = batch.
ReferenceFrames
.Where(f => f.ComponentId == 3)
2641
var rootComponentFrame = batch.
ReferenceFrames
[0];
2643
.Select(e => batch.
ReferenceFrames
[e.ReferenceFrameIndex])
2648
var eventHandlerId = batch.
ReferenceFrames
2683
.
ReferenceFrames
2725
.
ReferenceFrames
2768
var rootComponentFrame = batch.
ReferenceFrames
[0];
2770
.Select(e => batch.
ReferenceFrames
[e.ReferenceFrameIndex])
2775
var eventHandlerId = batch.
ReferenceFrames
2811
.
ReferenceFrames
2858
var origBatchReferenceFrames = renderer.Batches.Single().
ReferenceFrames
;
2887
batch.
ReferenceFrames
[edit.ReferenceFrameIndex],
2899
batch.
ReferenceFrames
[edit.ReferenceFrameIndex],
2911
batch.
ReferenceFrames
[edit.ReferenceFrameIndex],
2947
AssertFrame.Text(batch1.
ReferenceFrames
[edit1.ReferenceFrameIndex],
2956
AssertFrame.Text(batch2.
ReferenceFrames
[edit2.ReferenceFrameIndex],
2991
batch.
ReferenceFrames
[edit.ReferenceFrameIndex]);
2997
batch.
ReferenceFrames
[edit.ReferenceFrameIndex],
3006
AssertFrame.Text(batch.
ReferenceFrames
[diff2edit.ReferenceFrameIndex],
3014
AssertFrame.Text(batch.
ReferenceFrames
[diff3edit.ReferenceFrameIndex],
3051
.
ReferenceFrames
3056
.
ReferenceFrames
3089
.
ReferenceFrames
3100
var referenceFrames = latestBatch.
ReferenceFrames
;
3131
.
ReferenceFrames
3170
.
ReferenceFrames
3210
.
ReferenceFrames
3250
.
ReferenceFrames
3299
AssertFrame.Attribute(latestBatch.
ReferenceFrames
[edit.ReferenceFrameIndex],
3423
edit => (AfterRenderCaptureComponent)batch1.
ReferenceFrames
[edit.ReferenceFrameIndex].Component)
3506
.
ReferenceFrames
4219
var componentFrame = batch.
ReferenceFrames
4334
.
ReferenceFrames
4361
var attributeFrame = batch2.
ReferenceFrames
[edit.ReferenceFrameIndex];
4382
.
ReferenceFrames
4413
var attributeFrame = latestBatch.
ReferenceFrames
[edit.ReferenceFrameIndex];
4668
var eventHandlerId = renderer.Batches.Single().
ReferenceFrames
4707
var eventHandlerId = renderer.Batches.Single().
ReferenceFrames
4756
var eventHandlerId = renderer.Batches.Single().
ReferenceFrames
Routing\RouterTest.cs (3)
197
var renderedFrame = _renderer.Batches.First().
ReferenceFrames
.First();
243
var renderedFrame = _renderer.Batches.First().
ReferenceFrames
.First();
263
var renderedFrame = _renderer.Batches.First().
ReferenceFrames
.First();
src\Components\Shared\test\CapturedBatch.cs (1)
20
=>
ReferenceFrames
.Where(f => f.FrameType == RenderTreeFrameType.Component && f.Component is T);