41 references to Batches
Microsoft.AspNetCore.Components.Authorization.Tests (41)
AuthorizeRouteViewTest.cs (12)
61var batch = _renderer.Batches.Single(); 98var batch = _renderer.Batches.Single(); 136var batch = _renderer.Batches.Single(); 165var batch = _renderer.Batches.Single(); 193var batch = _renderer.Batches.Single(); 221var batch = _renderer.Batches.Single(); 234batch = _renderer.Batches.Skip(1).Single(); 265var batch = _renderer.Batches.Single(); 284var batch = _renderer.Batches.Single(); 313var batch = _renderer.Batches.Single(); 351Assert.Equal(2, _renderer.Batches.Count); 352var batch2 = _renderer.Batches[1];
AuthorizeViewTest.cs (20)
37var diff = renderer.Batches.Single().GetComponentDiffs<AuthorizeView>().Single(); 66var diff = renderer.Batches.Single().GetComponentDiffs<AuthorizeView>().Single(); 71renderer.Batches.Single().ReferenceFrames[edit.ReferenceFrameIndex], 100var diff = renderer.Batches.Single().GetComponentDiffs<AuthorizeView>().Single(); 130var diff = renderer.Batches.Single().GetComponentDiffs<AuthorizeView>().Single(); 135renderer.Batches.Single().ReferenceFrames[edit.ReferenceFrameIndex], 166var diff = renderer.Batches.Single().GetComponentDiffs<AuthorizeView>().Single(); 171renderer.Batches.Single().ReferenceFrames[edit.ReferenceFrameIndex], 201var authorizeViewComponentId = renderer.Batches.Single() 211Assert.Equal(2, renderer.Batches.Count); 212var batch = renderer.Batches.Last(); 266var batch1 = renderer.Batches.Single(); 278Assert.Equal(2, renderer.Batches.Count); 279var batch2 = renderer.Batches[1]; 309var batch1 = Assert.Single(renderer.Batches); 327Assert.Equal(2, renderer.Batches.Count); 328var batch2 = renderer.Batches[1]; 367var batch1 = renderer.Batches.Single(); 385Assert.Equal(2, renderer.Batches.Count); 386var batch2 = renderer.Batches[1];
CascadingAuthenticationStateTest.cs (8)
52var batch = renderer.Batches.Single(); 85var batch1 = renderer.Batches.Single(); 101Assert.Single(renderer.Batches); 105Assert.Equal(2, renderer.Batches.Count); 106var batch2 = renderer.Batches.Last(); 133var receiveAuthStateId = renderer.Batches.Single() 141Assert.Equal(2, renderer.Batches.Count); 142var batch = renderer.Batches.Last();
src\Components\Shared\test\TestRenderer.cs (1)
116Batches.Add(capturedBatch);