2 writes to State
Microsoft.AspNetCore.Components.Tests (2)
PersistentState\PersistentServicesRegistryTest.cs (2)
286State = initialState; 296State = state.ToDictionary(k => k.Key, v => v.Value);
11 references to State
Microsoft.AspNetCore.Components.Tests (11)
PersistentState\PersistentServicesRegistryTest.cs (11)
37var componentState = new PersistentComponentState(testStore.State, []); 44await secondManager.RestoreStateAsync(new TestStore(testStore.State)); 84await persistenceManagerTwo.RestoreStateAsync(new TestStore(testStore.State)); 117await secondManager.RestoreStateAsync(new TestStore(testStore.State)); 148var kvp = Assert.Single(testStore.State); 184var exception = await Record.ExceptionAsync(() => persistenceManagerTwo.RestoreStateAsync(new TestStore(testStore.State))); 220await persistenceManagerTwo.RestoreStateAsync(new TestStore(testStore.State)); 254var exception = await Record.ExceptionAsync(async () => await persistenceManagerTwo.RestoreStateAsync(new TestStore(testStore.State))); 291return Task.FromResult(State); 334await secondManager.RestoreStateAsync(new TestStore(testStore.State)); 379await secondManager.RestoreStateAsync(new TestStore(testStore.State));