1 write to Commands
aspire (1)
Backchannel\ResourceSnapshotMapper.cs (1)
168Commands = commands
19 references to Commands
Aspire.Cli.Tests (19)
Backchannel\ResourceSnapshotMapperTests.cs (17)
132var command = Assert.Single(result.Commands!); 182Assert.Equal(["restart", "start"], result.Commands!.Keys); 183Assert.Equal(KnownCommandState.Enabled, result.Commands["restart"].State); 184Assert.Equal(KnownCommandState.Disabled, result.Commands["start"].State); 206Assert.Equal(["api-only", "ui-disabled", "ui-only"], result.Commands!.Keys); 207Assert.Equal(KnownCommandVisibility.UI, result.Commands["ui-only"].Visibility); 208Assert.Equal(KnownCommandVisibility.UI, result.Commands["ui-disabled"].Visibility); 234Assert.Equal(["custom-action", "delete-parameter", "set-parameter"], result.Commands!.Keys); 235Assert.Equal(0, result.Commands["set-parameter"].SortOrder); 236Assert.Equal(1, result.Commands["custom-action"].SortOrder); 237Assert.Equal(2, result.Commands["delete-parameter"].SortOrder); 262Assert.Equal(["custom-action", "delete-parameter", "set-parameter"], result.Commands!.Keys); 263Assert.Equal(0, result.Commands["set-parameter"].SortOrder); 264Assert.Equal(1, result.Commands["custom-action"].SortOrder); 265Assert.Equal(2, result.Commands["delete-parameter"].SortOrder); 306var argumentInputs = Assert.Single(result.Commands!).Value.ArgumentInputs!; 335var command = Assert.Single(result.Commands!);
Commands\DescribeCommandTests.cs (2)
620Assert.Equal(["repair", "restart"], resource.Commands!.Keys); 621Assert.Equal(KnownCommandState.Disabled, resource.Commands["repair"].State);