22 writes to State
Aspire.Cli.Tests (22)
Backchannel\ResourceSnapshotMapperTests.cs (19)
52
State
= "Enabled",
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 }
249
State
= KnownCommandState.Enabled,
292
State
= "Enabled",
Commands\DescribeCommandTests.cs (2)
483
State
= KnownCommandState.Enabled,
490
State
= KnownCommandState.Disabled,
Commands\ResourceCommandTests.cs (1)
2355
State
= state,
3 references to State
aspire (3)
Backchannel\ResourceSnapshotMapper.cs (3)
117
.Where(c => IsCommandVisibleForConsumer(c.command.Visibility, includeDisabledCommands) && IsCommandVisibleToConsumer(c.command.
State
, includeDisabledCommands))
126
State = c.command.
State
,
228
return string.Equals(command.
State
, "Enabled", StringComparison.OrdinalIgnoreCase) &&