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