5 writes to IsPinned
Aspire.Tray.Tests (5)
Helpers\TrayPanelSamples.cs (1)
27IsPinned = pinned,
LinuxTrayTests.cs (2)
76var running = TrayPanelSamples.Running(Path.GetFullPath("Running.AppHost/apphost.cs"), 42) with { IsPinned = true }; 614IsRunning = false, IsPinned = true, CanStart = true
src\Aspire.Tray\Common\TrayController.cs (2)
588IsPinned = pins.Contains(TrayAppHostPath.Normalize(host.AppHostPath)), 646IsPinned = saved.IsPinned,
20 references to IsPinned
Aspire.Tray.Tests (20)
LinuxTrayTests.cs (1)
363Assert.True(Assert.Single(displayed.AppHosts).IsPinned);
src\Aspire.Tray\Common\TrayPanel.cs (1)
1273actions.Add(host.IsPinned
src\Aspire.Tray\Linux\LinuxTrayApplication.cs (2)
492if (!host.IsRunning && !host.IsPinned) 517controller.SetPinned(host!.Id.AppHostPath, !host.IsPinned);
src\Aspire.Tray\Linux\LinuxTrayMenu.cs (1)
87actions.Add(new(host.IsPinned ? "Unpin" : "Pin", LinuxTrayAction.TogglePin, host));
TrayControllerPinPruningTests.cs (5)
63Assert.True(Assert.Single(controller.State.AppHosts).IsPinned); 92Assert.True(row.IsPinned); 213Assert.True(Assert.Single(controller.State.AppHosts).IsPinned); 224Assert.True(Assert.Single(controller.State.AppHosts).IsPinned); 276Assert.True(Assert.Single(controller.State.AppHosts).IsPinned);
TrayControllerPreferencesTests.cs (1)
64Assert.True(Assert.Single(controller.State.AppHosts).IsPinned);
TrayControllerSavedStateTests.cs (9)
189Assert.True(row.IsPinned); 220Assert.True(live.IsPinned); 236Assert.True(offline.IsPinned); 250Assert.True(controller.State.AppHosts[0].IsPinned); 255Assert.False(Assert.Single(controller.State.AppHosts).IsPinned); 275Assert.All(controller.State.AppHosts, row => Assert.True(row.IsPinned)); 302Assert.True(Assert.Single(controller.State.AppHosts).IsPinned); 310Assert.True(Assert.Single(controller.State.AppHosts).IsPinned); 513Assert.False(Assert.Single(controller.State.AppHosts).IsPinned);