1 write to Commands
aspire (1)
Backchannel\ResourceSnapshotMapper.cs (1)
168Commands = commands
19 references to Commands
Aspire.Cli.Tests (19)
Backchannel\ResourceSnapshotMapperTests.cs (17)
99var command = Assert.Single(result.Commands!); 149Assert.Equal(["restart", "start"], result.Commands!.Keys); 150Assert.Equal(KnownCommandState.Enabled, result.Commands["restart"].State); 151Assert.Equal(KnownCommandState.Disabled, result.Commands["start"].State); 173Assert.Equal(["api-only", "ui-disabled", "ui-only"], result.Commands!.Keys); 174Assert.Equal(KnownCommandVisibility.UI, result.Commands["ui-only"].Visibility); 175Assert.Equal(KnownCommandVisibility.UI, result.Commands["ui-disabled"].Visibility); 201Assert.Equal(["custom-action", "delete-parameter", "set-parameter"], result.Commands!.Keys); 202Assert.Equal(0, result.Commands["set-parameter"].SortOrder); 203Assert.Equal(1, result.Commands["custom-action"].SortOrder); 204Assert.Equal(2, result.Commands["delete-parameter"].SortOrder); 229Assert.Equal(["custom-action", "delete-parameter", "set-parameter"], result.Commands!.Keys); 230Assert.Equal(0, result.Commands["set-parameter"].SortOrder); 231Assert.Equal(1, result.Commands["custom-action"].SortOrder); 232Assert.Equal(2, result.Commands["delete-parameter"].SortOrder); 273var argumentInputs = Assert.Single(result.Commands!).Value.ArgumentInputs!; 302var command = Assert.Single(result.Commands!);
Commands\DescribeCommandTests.cs (2)
510Assert.Equal(["repair", "restart"], resource.Commands!.Keys); 511Assert.Equal(KnownCommandState.Disabled, resource.Commands["repair"].State);