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