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)
799var setCommand = new CommandViewModel( 845var setCommand = new CommandViewModel( 891var setCommand = new CommandViewModel(
Controls\TerminalDisconnectedBannerTests.cs (1)
206new(name, state, name, string.Empty, string.Empty, [], false, "ArrowClockwise", IconVariant.Regular);
Controls\TerminalViewTests.cs (1)
624commands: [new CommandViewModel(CommandViewModel.StartCommand, CommandViewModelState.Enabled,
Layout\ResourcesLayoutTests.cs (3)
543var stop = new CommandViewModel("resource-stop", CommandViewModelState.Enabled, "Stop", "Stop resource", confirmationMessage: "", argumentInputs: [], isHighlighted: true, iconName: "Stop", iconVariant: IconVariant.Filled); 544var other = new CommandViewModel("custom", CommandViewModelState.Enabled, "Custom command", "", confirmationMessage: "", argumentInputs: [], isHighlighted: false, iconName: string.Empty, iconVariant: IconVariant.Regular); 576var stop = new CommandViewModel("resource-stop", CommandViewModelState.Enabled, "Stop", "Stop resource", confirmationMessage: "", argumentInputs: [], isHighlighted: true, iconName: "Stop", iconVariant: IconVariant.Filled);
Model\DashboardCommandExecutorTests.cs (1)
79var command = new CommandViewModel(
Pages\ConsoleLogsTests.cs (3)
793commands: [new CommandViewModel("test-name", CommandViewModelState.Enabled, "test-displayname", "test-displaydescription", confirmationMessage: "", argumentInputs: [], isHighlighted: true, iconName: string.Empty, iconVariant: IconVariant.Regular)]); 858new CommandViewModel( 902commands: [new CommandViewModel("test-name", CommandViewModelState.Enabled, "test-displayname", "test-displaydescription", confirmationMessage: "", argumentInputs: [], isHighlighted: true, iconName: string.Empty, iconVariant: IconVariant.Regular)]);
Pages\ResourcesTests.cs (1)
237new CommandViewModel(
Aspire.Dashboard.Tests (7)
Model\DashboardClientTests.cs (1)
1509return new CommandViewModel(
Model\DashboardCommandExecutorTests.cs (1)
336return new CommandViewModel(
Model\ResourceMenuBuilderTests.cs (5)
330var startCommand = new CommandViewModel( 340var stopCommand = new CommandViewModel( 378var command = new CommandViewModel( 423var command = new CommandViewModel( 466var command = new CommandViewModel(