5 writes to DisplayName
Aspire.Dashboard (1)
ServiceClient\Partials.cs (1)
28
DisplayName
= ValidateNotNull(DisplayName),
Aspire.Dashboard.Components.Tests (3)
Controls\ResourceDetailsTests.cs (1)
923
DisplayName
= resourceName,
Pages\ResourcesTests.cs (1)
1084
DisplayName
= name,
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
36
DisplayName
= displayName ?? resourceName ?? "Display name!",
Aspire.Dashboard.Tests (1)
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
36
DisplayName
= displayName ?? resourceName ?? "Display name!",
38 references to DisplayName
Aspire.Dashboard (21)
Components\Controls\ResourceDetails.razor.cs (2)
325
.Where(r => string.Equals(r.
DisplayName
, resourceRelationships.Key, StringComparisons.ResourceName))
355
if (string.Equals(resourceRelationships.Key, Resource.
DisplayName
, StringComparisons.ResourceName))
Components\Pages\Resources.razor.cs (2)
808
if (string.Equals(item.
DisplayName
, resource.
DisplayName
, StringComparisons.ResourceName))
Model\ResourceDetailRelationshipViewModel.cs (1)
14
return Resource.
DisplayName
.Contains(filter, StringComparison.CurrentCultureIgnoreCase) ||
Model\ResourceGraph\ResourceGraphMapper.cs (2)
20
var filteredRelationships = r.Relationships.Where(relationship => relationship.ResourceName != r.
DisplayName
);
25
.Where(r => string.Equals(r.
DisplayName
, resourceRelationships.Key, StringComparisons.ResourceName))
Model\ResourceSelectHelpers.cs (1)
18
.GroupBy(r => r.
DisplayName
, StringComparers.ResourceName))
Model\ResourceViewModel.cs (7)
56
public string PersistentKey { get => field ??= $"{
DisplayName
}_{ReplicaIndex}"; }
218
if (string.Equals(item.
DisplayName
, resource.
DisplayName
, StringComparisons.ResourceName))
230
return resource.
DisplayName
;
240
var resourcesWithDisplayName = resourceByName.Values.Where(r => string.Equals(resourceName, r.
DisplayName
, StringComparisons.ResourceName)).ToList();
263
var displayNameResult = string.Compare(x.
DisplayName
, y.
DisplayName
, StringComparisons.ResourceName);
Model\ResourceViewModelExtensions.cs (1)
185
if (!string.Equals(resource.
DisplayName
, displayName, StringComparisons.ResourceName))
Model\TelemetryExportService.cs (2)
706
.Where(r => string.Equals(r.
DisplayName
, relationship.ResourceName, StringComparisons.ResourceName))
725
DisplayName = resource.
DisplayName
,
Otlp\Storage\SqliteTelemetryRepository.Traces.Writes.cs (1)
1196
peerKey = ResourceKey.Create(matchedResource.
DisplayName
, matchedResource.Name);
ServiceClient\DashboardClient.cs (1)
601
var replicas = _resourceByName.Values.Count(r => r.
DisplayName
== displayName);
ServiceClient\SqliteResourceRepository.cs (1)
435
var replicaIndex = resources.Values.Count(r => string.Equals(r.
DisplayName
, resource.DisplayName, StringComparisons.ResourceName)) + 1;
Aspire.Dashboard.Components.Tests (1)
Model\DashboardCommandExecutorTests.cs (1)
91
await toasts.InvokeAsync(() => executor.ExecuteAsyncCore(resource, command, r => r.
DisplayName
))
Aspire.Dashboard.Tests (16)
Integration\Playwright\BrowserTokenAuthenticationTests.cs (5)
71
.Expect(page.GetByText(MockDashboardClient.TestResource1.
DisplayName
))
100
.Expect(page.GetByText(MockDashboardClient.TestResource1.
DisplayName
))
145
.Expect(page.GetByText(MockDashboardClient.TestResource1.
DisplayName
))
279
.Expect(page.GetByText(MockDashboardClient.TestResource1.
DisplayName
))
285
.Expect(page.GetByText(MockDashboardClient.TestResource1.
DisplayName
))
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
105
DisplayName = resource.
DisplayName
,
Integration\Playwright\Infrastructure\PlaywrightFixture.cs (1)
46
.Expect(page.GetByText(MockDashboardClient.TestResource1.
DisplayName
))
Integration\Playwright\MobileNavMenuTests.cs (2)
35
await Assertions.Expect(page.GetByText(MockDashboardClient.TestResource1.
DisplayName
)).ToBeVisibleAsync();
72
await Assertions.Expect(page.GetByText(MockDashboardClient.TestResource1.
DisplayName
)).ToBeVisibleAsync();
Model\DashboardCommandExecutorTests.cs (5)
62
await executor.ExecuteAsync(resource, command, r => r.
DisplayName
).WaitAsync(TimeSpan.FromSeconds(10));
104
var executeTask = executor.ExecuteAsyncCore(resource, command, r => r.
DisplayName
);
148
var executeTask = executor.ExecuteAsyncCore(resource, command, r => r.
DisplayName
);
188
var executeTask = executor.ExecuteAsyncCore(resource, command, r => r.
DisplayName
);
232
var executeTask = executor.ExecuteAsyncCore(resource, command, r => r.
DisplayName
);
Model\SqliteResourceRepositoryTests.cs (2)
302
.Select(resource => (resource.Name, resource.
DisplayName
));
1055
Assert.Equal(expected.DisplayName, actual.
DisplayName
);