2 writes to State
Microsoft.AspNetCore.Components.Tests (2)
PersistentState\PersistentServicesRegistryTest.cs (2)
286
State
= initialState;
296
State
= state.ToDictionary(k => k.Key, v => v.Value);
11 references to State
Microsoft.AspNetCore.Components.Tests (11)
PersistentState\PersistentServicesRegistryTest.cs (11)
37
var componentState = new PersistentComponentState(testStore.
State
, []);
44
await secondManager.RestoreStateAsync(new TestStore(testStore.
State
));
84
await persistenceManagerTwo.RestoreStateAsync(new TestStore(testStore.
State
));
117
await secondManager.RestoreStateAsync(new TestStore(testStore.
State
));
148
var kvp = Assert.Single(testStore.
State
);
184
var exception = await Record.ExceptionAsync(() => persistenceManagerTwo.RestoreStateAsync(new TestStore(testStore.
State
)));
220
await persistenceManagerTwo.RestoreStateAsync(new TestStore(testStore.
State
));
254
var exception = await Record.ExceptionAsync(async () => await persistenceManagerTwo.RestoreStateAsync(new TestStore(testStore.
State
)));
291
return Task.FromResult(
State
);
334
await secondManager.RestoreStateAsync(new TestStore(testStore.
State
));
379
await secondManager.RestoreStateAsync(new TestStore(testStore.
State
));