11 references to Key
Aspire.Dashboard.Tests (11)
Model\LocalStorageSettingTests.cs (11)
24await browser.Storage.SetAsync<List<int>>(Key, [1]); 28await browser.Storage.SetUnprotectedAsync<List<int>>(Key, [1]); 60? await browser.Storage.GetAsync<List<int>>(Key) 61: await browser.Storage.GetUnprotectedAsync<List<int>>(Key); 75var saved = browser.Items[Key]; 80Assert.Equal(saved, browser.Items[Key]); 97await browser.Storage.SetAsync<List<int>>(Key, [1]); 105browser.Items.Remove(Key); 109browser.Items[Key] = storedValue; 118Assert.Equal(storedValue, browser.Items.GetValueOrDefault(Key)); 122new(browser.Storage, new LocalStorageLocks(), Key, NullLogger.Instance, protect, stored => stored?.ToList() ?? [], (x, y) => x.SequenceEqual(y), onChanged);