52 references to DiffsByComponentId
Microsoft.AspNetCore.Components.Tests (52)
CascadingParameterTest.cs (20)
36
var nestedComponentDiff = batch.
DiffsByComponentId
[nestedComponentId].Single();
85
var nestedComponentDiff = secondBatch.
DiffsByComponentId
[nestedComponentId].Single();
131
var nestedComponentDiff = secondBatch.
DiffsByComponentId
[nestedComponentId].Single();
167
Assert.Equal(3, firstBatch.
DiffsByComponentId
.Count); // Root + CascadingValue + nested
176
Assert.Equal(2, secondBatch.
DiffsByComponentId
.Count); // Root + CascadingValue, but not nested one
229
Assert.Equal(3, secondBatch.
DiffsByComponentId
.Count); // Root + CascadingValue + CascadingValue, but not nested component
279
var nestedComponentDiff = firstBatch.
DiffsByComponentId
[nestedComponentId].Single();
295
Assert.Equal(2, secondBatch.
DiffsByComponentId
.Count); // Root + CascadingValue, but not nested one
419
var nestedComponentDiff1 = batch.
DiffsByComponentId
[nestedComponentId1].Single();
420
var nestedComponentDiff2 = batch.
DiffsByComponentId
[nestedComponentId2].Single();
467
var diff = batch.
DiffsByComponentId
[componentId].Single();
503
var diff = batch.
DiffsByComponentId
[componentId].Single();
541
var nestedComponentDiff = batch.
DiffsByComponentId
[nestedComponentId].Single();
585
var diff = firstBatch.
DiffsByComponentId
[componentId].Single();
602
var diff2 = secondBatch.
DiffsByComponentId
[componentId].Single();
618
var diff3 = thirdBatch.
DiffsByComponentId
[componentId].Single();
655
var diff = firstBatch.
DiffsByComponentId
[componentId].Single();
670
var diff2 = secondBatch.
DiffsByComponentId
[componentId].Single();
680
var nestedComponentDiff = secondBatch.
DiffsByComponentId
[nestedComponentId].Single();
766
var nestedComponentDiff = secondBatch.
DiffsByComponentId
[nestedComponentId].Single();
RendererTest.cs (28)
46
var diff = batch.
DiffsByComponentId
[componentId].Single();
77
var nestedComponentDiff = batch.
DiffsByComponentId
[nestedComponentId].Single();
80
Assert.Equal(2, batch.
DiffsByComponentId
.Count);
107
var firstDiff = batch.
DiffsByComponentId
[componentId].Single();
120
var secondDiff = secondBatch.
DiffsByComponentId
[componentId].Single();
152
var firstDiff = batch.
DiffsByComponentId
[nestedComponentId].Single();
165
var secondDiff = secondBatch.
DiffsByComponentId
[nestedComponentId].Single();
195
var diff = create.
DiffsByComponentId
[componentId].Single();
210
var updateDiff = update.
DiffsByComponentId
[componentId].Single();
289
var diff = batch.
DiffsByComponentId
[componentId].Single();
305
var diff2 = batch2.
DiffsByComponentId
[componentId].Single();
2011
var renderer1Diff = renderer1Batch.
DiffsByComponentId
[renderer1ComponentId].Single();
2021
var renderer2Diff = renderer2Batch.
DiffsByComponentId
[renderer2ComponentId].Single();
2058
var diff = batch.
DiffsByComponentId
[rootComponentId].Single();
2066
Assert.False(batch.
DiffsByComponentId
.ContainsKey(nestedComponentFrame.ComponentId));
2132
var diff = renderer.Batches[1].
DiffsByComponentId
[childComponentId].Single();
2170
var diff = renderer.Batches[1].
DiffsByComponentId
[childComponentId].Single();
2211
Assert.False(renderer.Batches[1].
DiffsByComponentId
.ContainsKey(childComponentId));
2238
var rootComponentDiff = batch.
DiffsByComponentId
[rootComponentId].Single();
2640
var rootComponentDiff = batch.
DiffsByComponentId
[rootComponentId].Single();
2647
var childComponentDiff = batch.
DiffsByComponentId
[childComponentFrame.ComponentId].Single();
2767
var rootComponentDiff = batch.
DiffsByComponentId
[rootComponentId].Single();
2774
var childComponentDiff = batch.
DiffsByComponentId
[childComponentFrame.ComponentId].Single();
2945
var edit1 = batch1.
DiffsByComponentId
[componentId].Single().Edits.Single();
2954
var edit2 = batch2.
DiffsByComponentId
[componentId].Single().Edits.Single();
3069
Assert.Single(newBatch.
DiffsByComponentId
);
3070
Assert.Collection(newBatch.
DiffsByComponentId
[componentId].Single().Edits,
3420
var parentComponentEdits1 = batch1.
DiffsByComponentId
[parentComponentId].Single().Edits;
src\Components\Shared\test\CapturedBatch.cs (4)
23
=> GetComponentFrames<T>().SelectMany(f =>
DiffsByComponentId
[f.ComponentId]);
28
if (!
DiffsByComponentId
.ContainsKey(componentId))
30
DiffsByComponentId
.Add(componentId, new List<RenderTreeDiff>());
39
DiffsByComponentId
[componentId].Add(diffClone);