10 references to RestoreStateAsync
Microsoft.AspNetCore.Components.Tests (10)
PersistentState\ComponentStatePersistenceManagerTest.cs (3)
54
await persistenceManager.
RestoreStateAsync
(store);
75
await persistenceManager.
RestoreStateAsync
(store);
78
await Assert.ThrowsAsync<InvalidOperationException>(() => persistenceManager.
RestoreStateAsync
(store));
PersistentState\PersistentServicesRegistryTest.cs (7)
46
await secondManager.
RestoreStateAsync
(new TestStore(testStore.State));
88
await persistenceManagerTwo.
RestoreStateAsync
(new TestStore(testStore.State));
121
await secondManager.
RestoreStateAsync
(new TestStore(testStore.State));
189
var exception = await Record.ExceptionAsync(() => persistenceManagerTwo.
RestoreStateAsync
(new TestStore(testStore.State)));
261
var exception = await Record.ExceptionAsync(async () => await persistenceManagerTwo.
RestoreStateAsync
(new TestStore(testStore.State)));
343
await secondManager.
RestoreStateAsync
(new TestStore(testStore.State));
389
await secondManager.
RestoreStateAsync
(new TestStore(testStore.State));