29 writes to Name
Aspire.Cli.Tests (29)
Backchannel\ResourceSnapshotMapperTests.cs (19)
51
Name
= "stop",
78
new ResourceSnapshotCommand {
Name
= "start", State = "Disabled", Description = "Start" },
79
new ResourceSnapshotCommand {
Name
= "save", State = "Hidden", Description = "Save parameter" },
80
new ResourceSnapshotCommand {
Name
= "dashboard-only", State = "Enabled", Description = "UI only", Visibility = KnownCommandVisibility.UI },
81
new ResourceSnapshotCommand {
Name
= "missing-visibility", State = "Enabled", Description = "Missing visibility", Visibility = null! }
141
new ResourceSnapshotCommand {
Name
= "restart", State = KnownCommandState.Enabled, Description = "Restart" },
142
new ResourceSnapshotCommand {
Name
= "start", State = KnownCommandState.Disabled, Description = "Start" },
143
new ResourceSnapshotCommand {
Name
= "save", State = KnownCommandState.Hidden, Description = "Save parameter" }
165
new ResourceSnapshotCommand {
Name
= "api-only", State = KnownCommandState.Enabled, Description = "API only", Visibility = KnownCommandVisibility.Api },
166
new ResourceSnapshotCommand {
Name
= "ui-only", State = KnownCommandState.Enabled, Description = "UI only", Visibility = KnownCommandVisibility.UI },
167
new ResourceSnapshotCommand {
Name
= "ui-disabled", State = KnownCommandState.Disabled, Description = "UI disabled", Visibility = KnownCommandVisibility.UI }
191
new ResourceSnapshotCommand {
Name
= "set-parameter", State = KnownCommandState.Enabled, Description = "Set", Visibility = KnownCommandVisibility.Api },
192
new ResourceSnapshotCommand {
Name
= "custom-action", State = KnownCommandState.Enabled, Description = "Custom", Visibility = KnownCommandVisibility.Api },
193
new ResourceSnapshotCommand {
Name
= "delete-parameter", State = KnownCommandState.Enabled, Description = "Delete", Visibility = KnownCommandVisibility.Api }
219
new ResourceSnapshotCommand {
Name
= "set-parameter", State = KnownCommandState.Enabled, Description = "Set", Visibility = KnownCommandVisibility.Api },
220
new ResourceSnapshotCommand {
Name
= "custom-action", State = KnownCommandState.Enabled, Description = "Custom", Visibility = KnownCommandVisibility.Api },
221
new ResourceSnapshotCommand {
Name
= "delete-parameter", State = KnownCommandState.Enabled, Description = "Delete", Visibility = KnownCommandVisibility.Api }
248
Name
= "login",
291
Name
= "custom-command",
Commands\DescribeCommandTests.cs (2)
481
Name
= "restart",
488
Name
= "repair",
Commands\ResourceCommandTests.cs (1)
2393
Name
= name,
Mcp\ListResourcesToolTests.cs (7)
513
Name
= "reload",
554
new ResourceSnapshotCommand {
Name
= "disabled", State = "disabled", Visibility = "api" },
555
new ResourceSnapshotCommand {
Name
= "hidden", State = "Hidden" },
556
new ResourceSnapshotCommand {
Name
= "ui-only", State = "Enabled", Visibility = "UI" },
557
new ResourceSnapshotCommand {
Name
= "none", State = "Enabled", Visibility = "None" }
574
Name
= $"command-{index:D3}",
949
Name
= "connect",
9 references to Name
aspire (8)
Backchannel\ResourceSnapshotMapper.cs (2)
118
.OrderBy(c => c.command.
Name
)
120
c => c.command.
Name
,
Commands\ResourceCommand.cs (4)
231
.FirstOrDefault(command => string.Equals(command.
Name
, lookupCommandName, StringComparisons.CommandName));
242
.GroupBy(static command => command.
Name
, StringComparers.CommandName)
759
writer.WriteLine(command.Description is { Length: > 0 } ? command.Description : command.DisplayName ?? command.
Name
);
763
string.Format(CultureInfo.CurrentCulture, ResourceCommandStrings.CommandSpecificHelpUsageSyntax, resourceName, command.
Name
));
Mcp\Tools\ListResourcesTool.cs (2)
308
.OrderBy(command => command.
Name
, StringComparer.Ordinal)
310
command => command.
Name
,
Aspire.Cli.Tests (1)
Mcp\ListResourcesToolTests.cs (1)
601
Assert.Equal(commands.Select(command => command.
Name
), metadata.EnumerateObject().Select(command => command.Name));