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