21 references to CommandViewModel
Aspire.Dashboard (1)
ServiceClient\Partials.cs (1)
134
.Select(c => new
CommandViewModel
(c.Name, MapState(c.State), c.DisplayName, c.DisplayDescription, c.ConfirmationMessage, c.ArgumentInputs.ToImmutableArray(), c.IsHighlighted, c.IconName, MapIconVariant(c.IconVariant)))
Aspire.Dashboard.Components.Tests (13)
Controls\ResourceDetailsTests.cs (3)
799
var setCommand = new
CommandViewModel
(
845
var setCommand = new
CommandViewModel
(
891
var setCommand = new
CommandViewModel
(
Controls\TerminalDisconnectedBannerTests.cs (1)
206
new
(name, state, name, string.Empty, string.Empty, [], false, "ArrowClockwise", IconVariant.Regular);
Controls\TerminalViewTests.cs (1)
624
commands: [new
CommandViewModel
(CommandViewModel.StartCommand, CommandViewModelState.Enabled,
Layout\ResourcesLayoutTests.cs (3)
543
var stop = new
CommandViewModel
("resource-stop", CommandViewModelState.Enabled, "Stop", "Stop resource", confirmationMessage: "", argumentInputs: [], isHighlighted: true, iconName: "Stop", iconVariant: IconVariant.Filled);
544
var other = new
CommandViewModel
("custom", CommandViewModelState.Enabled, "Custom command", "", confirmationMessage: "", argumentInputs: [], isHighlighted: false, iconName: string.Empty, iconVariant: IconVariant.Regular);
576
var stop = new
CommandViewModel
("resource-stop", CommandViewModelState.Enabled, "Stop", "Stop resource", confirmationMessage: "", argumentInputs: [], isHighlighted: true, iconName: "Stop", iconVariant: IconVariant.Filled);
Model\DashboardCommandExecutorTests.cs (1)
79
var command = new
CommandViewModel
(
Pages\ConsoleLogsTests.cs (3)
793
commands: [new
CommandViewModel
("test-name", CommandViewModelState.Enabled, "test-displayname", "test-displaydescription", confirmationMessage: "", argumentInputs: [], isHighlighted: true, iconName: string.Empty, iconVariant: IconVariant.Regular)]);
858
new
CommandViewModel
(
902
commands: [new
CommandViewModel
("test-name", CommandViewModelState.Enabled, "test-displayname", "test-displaydescription", confirmationMessage: "", argumentInputs: [], isHighlighted: true, iconName: string.Empty, iconVariant: IconVariant.Regular)]);
Pages\ResourcesTests.cs (1)
237
new
CommandViewModel
(
Aspire.Dashboard.Tests (7)
Model\DashboardClientTests.cs (1)
1509
return new
CommandViewModel
(
Model\DashboardCommandExecutorTests.cs (1)
336
return new
CommandViewModel
(
Model\ResourceMenuBuilderTests.cs (5)
330
var startCommand = new
CommandViewModel
(
340
var stopCommand = new
CommandViewModel
(
378
var command = new
CommandViewModel
(
423
var command = new
CommandViewModel
(
466
var command = new
CommandViewModel
(