35 references to TestStore
Microsoft.AspNetCore.Components.Tests (35)
PersistentState\PersistentServicesRegistryTest.cs (35)
32var testStore = new TestStore(new Dictionary<string, byte[]>()); 36await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue); 46await secondManager.RestoreStateAsync(new TestStore(testStore.State)); 77var testStore = new TestStore(new Dictionary<string, byte[]>()); 79await persistenceManagerOne.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue); 88await persistenceManagerTwo.RestoreStateAsync(new TestStore(testStore.State)); 113var testStore = new TestStore(new Dictionary<string, byte[]>()); 121await secondManager.RestoreStateAsync(new TestStore(testStore.State)); 146var testStore = new TestStore(new Dictionary<string, byte[]>()); 147await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue); 176var testStore = new TestStore(new Dictionary<string, byte[]>()); 189var exception = await Record.ExceptionAsync(() => persistenceManagerTwo.RestoreStateAsync(new TestStore(testStore.State))); 216var testStore = new TestStore(new Dictionary<string, byte[]>()); 218await persistenceManagerOne.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue); 227await persistenceManagerTwo.RestoreStateAsync(new TestStore(testStore.State), RestoreContext.InitialValue); 252var testStore = new TestStore(new Dictionary<string, byte[]>()); 261var exception = await Record.ExceptionAsync(async () => await persistenceManagerTwo.RestoreStateAsync(new TestStore(testStore.State))); 332var testStore = new TestStore(new Dictionary<string, byte[]>()); 334await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue); 343await secondManager.RestoreStateAsync(new TestStore(testStore.State)); 379var testStore = new TestStore(new Dictionary<string, byte[]>()); 380await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue); 389await secondManager.RestoreStateAsync(new TestStore(testStore.State)); 420var testStore = new TestStore(new Dictionary<string, byte[]>()); 422await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue); 431await initialValueManager.RestoreStateAsync(new TestStore(testStore.State), RestoreContext.InitialValue); 456var testStore = new TestStore(new Dictionary<string, byte[]>()); 458await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue); 467await lastSnapshotManager.RestoreStateAsync(new TestStore(testStore.State), RestoreContext.LastSnapshot); 492var initialStore = new TestStore(new Dictionary<string, byte[]>()); 494await persistenceManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue); 505var updatedStore = new TestStore(new Dictionary<string, byte[]>()); 507await updatedManager.RestoreStateAsync(new TestStore(new Dictionary<string, byte[]>()), RestoreContext.InitialValue); 516await targetManager.RestoreStateAsync(new TestStore(initialStore.State), RestoreContext.InitialValue); 521await targetManager.RestoreStateAsync(new TestStore(updatedStore.State), RestoreContext.ValueUpdate);