1 write to Commands
aspire (1)
Backchannel\ResourceSnapshotMapper.cs (1)
169Commands = commands
19 references to Commands
Aspire.Cli.Tests (19)
Backchannel\ResourceSnapshotMapperTests.cs (17)
148var command = Assert.Single(result.Commands!); 198Assert.Equal(["restart", "start"], result.Commands!.Keys); 199Assert.Equal(KnownCommandState.Enabled, result.Commands["restart"].State); 200Assert.Equal(KnownCommandState.Disabled, result.Commands["start"].State); 222Assert.Equal(["api-only", "ui-disabled", "ui-only"], result.Commands!.Keys); 223Assert.Equal(KnownCommandVisibility.UI, result.Commands["ui-only"].Visibility); 224Assert.Equal(KnownCommandVisibility.UI, result.Commands["ui-disabled"].Visibility); 250Assert.Equal(["custom-action", "delete-parameter", "set-parameter"], result.Commands!.Keys); 251Assert.Equal(0, result.Commands["set-parameter"].SortOrder); 252Assert.Equal(1, result.Commands["custom-action"].SortOrder); 253Assert.Equal(2, result.Commands["delete-parameter"].SortOrder); 278Assert.Equal(["custom-action", "delete-parameter", "set-parameter"], result.Commands!.Keys); 279Assert.Equal(0, result.Commands["set-parameter"].SortOrder); 280Assert.Equal(1, result.Commands["custom-action"].SortOrder); 281Assert.Equal(2, result.Commands["delete-parameter"].SortOrder); 322var argumentInputs = Assert.Single(result.Commands!).Value.ArgumentInputs!; 351var command = Assert.Single(result.Commands!);
Commands\DescribeCommandTests.cs (2)
733Assert.Equal(["repair", "restart"], resource.Commands!.Keys); 734Assert.Equal(KnownCommandState.Disabled, resource.Commands["repair"].State);