29 writes to State
Aspire.Cli.Tests (29)
Backchannel\ResourceSnapshotMapperTests.cs (19)
101
State
= "Enabled",
127
new ResourceSnapshotCommand { Name = "start",
State
= "Disabled", Description = "Start" },
128
new ResourceSnapshotCommand { Name = "save",
State
= "Hidden", Description = "Save parameter" },
129
new ResourceSnapshotCommand { Name = "dashboard-only",
State
= "Enabled", Description = "UI only", Visibility = KnownCommandVisibility.UI },
130
new ResourceSnapshotCommand { Name = "missing-visibility",
State
= "Enabled", Description = "Missing visibility", Visibility = null! }
190
new ResourceSnapshotCommand { Name = "restart",
State
= KnownCommandState.Enabled, Description = "Restart" },
191
new ResourceSnapshotCommand { Name = "start",
State
= KnownCommandState.Disabled, Description = "Start" },
192
new ResourceSnapshotCommand { Name = "save",
State
= KnownCommandState.Hidden, Description = "Save parameter" }
214
new ResourceSnapshotCommand { Name = "api-only",
State
= KnownCommandState.Enabled, Description = "API only", Visibility = KnownCommandVisibility.Api },
215
new ResourceSnapshotCommand { Name = "ui-only",
State
= KnownCommandState.Enabled, Description = "UI only", Visibility = KnownCommandVisibility.UI },
216
new ResourceSnapshotCommand { Name = "ui-disabled",
State
= KnownCommandState.Disabled, Description = "UI disabled", Visibility = KnownCommandVisibility.UI }
240
new ResourceSnapshotCommand { Name = "set-parameter",
State
= KnownCommandState.Enabled, Description = "Set", Visibility = KnownCommandVisibility.Api },
241
new ResourceSnapshotCommand { Name = "custom-action",
State
= KnownCommandState.Enabled, Description = "Custom", Visibility = KnownCommandVisibility.Api },
242
new ResourceSnapshotCommand { Name = "delete-parameter",
State
= KnownCommandState.Enabled, Description = "Delete", Visibility = KnownCommandVisibility.Api }
268
new ResourceSnapshotCommand { Name = "set-parameter",
State
= KnownCommandState.Enabled, Description = "Set", Visibility = KnownCommandVisibility.Api },
269
new ResourceSnapshotCommand { Name = "custom-action",
State
= KnownCommandState.Enabled, Description = "Custom", Visibility = KnownCommandVisibility.Api },
270
new ResourceSnapshotCommand { Name = "delete-parameter",
State
= KnownCommandState.Enabled, Description = "Delete", Visibility = KnownCommandVisibility.Api }
298
State
= KnownCommandState.Enabled,
341
State
= "Enabled",
Commands\DescribeCommandTests.cs (2)
706
State
= KnownCommandState.Enabled,
713
State
= KnownCommandState.Disabled,
Commands\ResourceCommandTests.cs (1)
2395
State
= state,
Mcp\ListResourcesToolTests.cs (7)
516
State
= "Enabled",
556
new ResourceSnapshotCommand { Name = "disabled",
State
= "disabled", Visibility = "api" },
557
new ResourceSnapshotCommand { Name = "hidden",
State
= "Hidden" },
558
new ResourceSnapshotCommand { Name = "ui-only",
State
= "Enabled", Visibility = "UI" },
559
new ResourceSnapshotCommand { Name = "none",
State
= "Enabled", Visibility = "None" }
577
State
= "Enabled",
952
State
= "Enabled",
5 references to State
aspire (5)
Backchannel\ResourceSnapshotMapper.cs (3)
117
.Where(c => IsCommandVisibleForConsumer(c.command.Visibility, includeDisabledCommands) && IsCommandVisibleToConsumer(c.command.
State
, includeDisabledCommands))
126
State = c.command.
State
,
229
return string.Equals(command.
State
, "Enabled", StringComparison.OrdinalIgnoreCase) &&
Mcp\Tools\ListResourcesTool.cs (2)
309
ResourceSnapshotMapper.IsCommandVisibleToConsumer(command.
State
, includeDisabledCommands: true))
315
State = string.Equals(command.
State
, KnownCommandState.Enabled, StringComparison.OrdinalIgnoreCase)