1 write to DisplayName
Aspire.Hosting (1)
ApplicationModel\ResourceCommandAnnotation.cs (1)
76
DisplayName
= displayName;
29 references to DisplayName
Aspire.Hosting (3)
ApplicationModel\ResourceCommandService.cs (2)
711
annotation.
DisplayName
,
716
PrimaryButtonText = annotation.
DisplayName
,
ApplicationModel\ResourceNotificationService.cs (1)
1158
return new ResourceCommandSnapshot(annotation.Name, state, annotation.
DisplayName
, annotation.DisplayDescription, annotation.Parameter, annotation.ConfirmationMessage, annotation.IconName, annotation.IconVariant, annotation.IsHighlighted)
Aspire.Hosting.Azure.Tests (1)
AzureEnvironmentResourceExtensionsTests.cs (1)
75
Assert.Equal("Reset provisioning state", resetCommand.
DisplayName
);
Aspire.Hosting.Browsers.Tests (3)
BrowserLogsBuilderExtensionsTests.cs (3)
59
Assert.Equal(BrowserCommandStrings.OpenTrackedBrowserName, command.
DisplayName
);
62
Assert.Equal(BrowserCommandStrings.ConfigureTrackedBrowserName, configureCommand.
DisplayName
);
65
Assert.Equal(BrowserCommandStrings.CaptureScreenshotName, screenshotCommand.
DisplayName
);
Aspire.Hosting.EntityFrameworkCore.Tests (7)
EFMigrationCommandsTests.cs (7)
24
Assert.Contains("Update Database", updateCommand.
DisplayName
);
38
Assert.Contains("Drop Database", dropCommand.
DisplayName
);
53
Assert.Contains("Reset Database", resetCommand.
DisplayName
);
68
Assert.Contains("Add Migration", addCommand.
DisplayName
);
86
Assert.Contains("Remove Migration", removeCommand.
DisplayName
);
100
Assert.Contains("Get Database Status", statusCommand.
DisplayName
);
128
Assert.Equal("Update Database", updateCommand.
DisplayName
);
Aspire.Hosting.Foundry.Tests (2)
HostedAgentExtensionTests.cs (1)
82
Assert.Equal("Send Message", command.
DisplayName
);
PromptAgentTests.cs (1)
78
Assert.Equal("Send Message", command.
DisplayName
);
Aspire.Hosting.Tests (13)
Orchestrator\ParameterProcessorTests.cs (1)
878
Assert.Equal(CommandStrings.SetParameterName, setValueCommand.
DisplayName
);
ResourceCommandAnnotationTests.cs (1)
176
Assert.Equal(CommandStrings.RebuildName, rebuildCommand.
DisplayName
);
WithHttpCommandTests.cs (9)
209
Assert.Equal("Do The Thing", command.
DisplayName
);
242
Assert.Equal("Do The Thing", command.
DisplayName
);
282
Assert.Equal("Do The Thing", command.
DisplayName
);
415
var command1 = commands.FirstOrDefault(c => c.
DisplayName
== "Do The Thing");
416
var command2 = commands.FirstOrDefault(c => c.
DisplayName
== "Do The Thing" && c.Name.Contains("custom-endpoint"));
417
var command3 = commands.FirstOrDefault(c => c.
DisplayName
== "Do The Get Thing");
418
var command4 = commands.FirstOrDefault(c => c.
DisplayName
== "Do The Get Thing" && c.Name.Contains("custom-endpoint"));
419
var command5 = commands.FirstOrDefault(c => c.
DisplayName
== "Do The Other Thing");
420
var command6 = commands.FirstOrDefault(c => c.
DisplayName
== "Do The Other Thing CHANGED");
WithProcessCommandTests.cs (2)
74
Assert.Equal("Run command", command.
DisplayName
);
114
Assert.Equal("Run export command", command.
DisplayName
);