2 writes to State
Microsoft.AspNetCore.Components.Tests (2)
PersistentState\PersistentServicesRegistryTest.cs (2)
293State = initialState; 303State = state.ToDictionary(k => k.Key, v => v.Value);
15 references to State
Microsoft.AspNetCore.Components.Tests (15)
PersistentState\PersistentServicesRegistryTest.cs (15)
39var componentState = new PersistentComponentState(testStore.State, [], []); 46await secondManager.RestoreStateAsync(new TestStore(testStore.State)); 88await persistenceManagerTwo.RestoreStateAsync(new TestStore(testStore.State)); 121await secondManager.RestoreStateAsync(new TestStore(testStore.State)); 153var kvp = Assert.Single(testStore.State); 189var exception = await Record.ExceptionAsync(() => persistenceManagerTwo.RestoreStateAsync(new TestStore(testStore.State))); 227await persistenceManagerTwo.RestoreStateAsync(new TestStore(testStore.State), RestoreContext.InitialValue); 261var exception = await Record.ExceptionAsync(async () => await persistenceManagerTwo.RestoreStateAsync(new TestStore(testStore.State))); 298return Task.FromResult(State); 343await secondManager.RestoreStateAsync(new TestStore(testStore.State)); 389await secondManager.RestoreStateAsync(new TestStore(testStore.State)); 431await initialValueManager.RestoreStateAsync(new TestStore(testStore.State), RestoreContext.InitialValue); 467await lastSnapshotManager.RestoreStateAsync(new TestStore(testStore.State), RestoreContext.LastSnapshot); 516await targetManager.RestoreStateAsync(new TestStore(initialStore.State), RestoreContext.InitialValue); 521await targetManager.RestoreStateAsync(new TestStore(updatedStore.State), RestoreContext.ValueUpdate);