35 references to CommandViewModel
Aspire.Dashboard (1)
ServiceClient\Partials.cs (1)
135
.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 (24)
Controls\MissingParametersPanelTests.cs (1)
141
new
(CommandViewModel.SetParameterCommand, CommandViewModelState.Enabled, "Set", string.Empty, string.Empty, [input], isHighlighted: false, iconName: string.Empty, iconVariant: Microsoft.FluentUI.AspNetCore.Components.IconVariant.Regular);
Controls\ResourceDetailsTests.cs (3)
797
var setCommand = new
CommandViewModel
(
843
var setCommand = new
CommandViewModel
(
889
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 (13)
636
static CommandViewModel Command(string name, CommandViewModelState state) =>
new
(name, state, name, "",
1544
var command = new
CommandViewModel
("resource-stop", CommandViewModelState.Enabled, "Stop", "Stop resource", confirmationMessage: "", argumentInputs: [], isHighlighted: true, iconName: iconName, iconVariant: IconVariant.Filled);
1586
var stop = new
CommandViewModel
("resource-stop", CommandViewModelState.Enabled, "Stop", "Stop resource", confirmationMessage: "", argumentInputs: [], isHighlighted: true, iconName: "Stop", iconVariant: IconVariant.Filled);
1587
var other = new
CommandViewModel
("custom", CommandViewModelState.Enabled, "Custom command", "", confirmationMessage: "", argumentInputs: [], isHighlighted: false, iconName: string.Empty, iconVariant: IconVariant.Regular);
1617
new
(CommandViewModel.StopCommand, state, "Stop", "", confirmationMessage: "", argumentInputs: [], isHighlighted: true, iconName: "", iconVariant: IconVariant.Regular);
1626
new
CommandViewModel
(CommandViewModel.SetParameterCommand, CommandViewModelState.Enabled, "Set parameter", "",
1673
var command = new
CommandViewModel
("refresh", CommandViewModelState.Enabled, "Refresh", "",
1712
var stop = new
CommandViewModel
("resource-stop", CommandViewModelState.Enabled, "Stop", "Stop resource", confirmationMessage: "", argumentInputs: [], isHighlighted: true, iconName: "Stop", iconVariant: IconVariant.Filled);
1747
new
(name, state, name, "", confirmationMessage: "", argumentInputs: [], isHighlighted: highlighted, iconName: "", iconVariant: IconVariant.Regular);
1784
new
(name, state, name, "", confirmationMessage: "", argumentInputs: [], isHighlighted: highlighted, iconName: "", iconVariant: IconVariant.Regular);
1835
new
(name, state, displayName, "", confirmationMessage: "", argumentInputs: [], isHighlighted: highlighted, iconName: "Key", iconVariant: IconVariant.Regular);
1891
new
(name, state, name, "", confirmationMessage: "", argumentInputs: [], isHighlighted: true, iconName: "", iconVariant: IconVariant.Regular);
2012
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)
839
commands: [new
CommandViewModel
("test-name", CommandViewModelState.Enabled, "test-displayname", "test-displaydescription", confirmationMessage: "", argumentInputs: [], isHighlighted: true, iconName: string.Empty, iconVariant: IconVariant.Regular)]);
904
new
CommandViewModel
(
948
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)
275
new
CommandViewModel
(
Aspire.Dashboard.Playwright.Tests (2)
Integration\Playwright\ResourcePaneResponsiveTests.cs (2)
264
commands: [
new
("inspect", CommandViewModelState.Enabled, "Inspect", "", "", [],
2847
new
(name, CommandViewModelState.Enabled, name, "", confirmationMessage: "", argumentInputs: [],
Aspire.Dashboard.Tests (8)
Model\DashboardClientTests.cs (1)
1509
return new
CommandViewModel
(
Model\DashboardCommandExecutorTests.cs (1)
431
return new
CommandViewModel
(
Model\ResourceMenuBuilderTests.cs (6)
161
new
(name, state, name, "", "", [], false, "", IconVariant.Regular);
409
var startCommand = new
CommandViewModel
(
419
var stopCommand = new
CommandViewModel
(
457
var command = new
CommandViewModel
(
502
var command = new
CommandViewModel
(
545
var command = new
CommandViewModel
(