201 writes to DisplayName
Aspire.Cli.Tests (201)
Backchannel\ResourceSnapshotMapperTests.cs (26)
57
DisplayName
= "MAUI",
89
DisplayName
= "frontend",
185
DisplayName
= "frontend",
209
DisplayName
= "frontend",
235
DisplayName
= "parameter",
263
DisplayName
= "parameter",
290
DisplayName
= "frontend",
333
DisplayName
= "frontend",
362
DisplayName
= "messaging",
370
DisplayName
= "frontend",
388
DisplayName
= "frontend",
420
DisplayName
= "messaging",
427
DisplayName
= "messaging",
435
DisplayName
= "frontend",
452
new() { Name = "cache-zuyppzgw",
DisplayName
= "cache", ResourceType = "Container", State = "Running" },
453
new() { Name = "frontend",
DisplayName
= "frontend", ResourceType = "Project", State = "Running" }
467
new() { Name = "cache-zuyppzgw",
DisplayName
= "cache", ResourceType = "Container", State = "Running" },
468
new() { Name = "frontend",
DisplayName
= "frontend", ResourceType = "Project", State = "Running" }
482
new() { Name = "cache-abc12345",
DisplayName
= "cache", ResourceType = "Container", State = "Running" },
483
new() { Name = "cache-def67890",
DisplayName
= "cache", ResourceType = "Container", State = "Running" },
484
new() { Name = "frontend",
DisplayName
= "frontend", ResourceType = "Project", State = "Running" }
497
new() { Name = "cache-abc12345",
DisplayName
= "cache", ResourceType = "Container", State = "Running" },
498
new() { Name = "cache-def67890",
DisplayName
= "cache", ResourceType = "Container", State = "Running" },
499
new() { Name = "frontend",
DisplayName
= "frontend", ResourceType = "Project", State = "Running" }
513
new() { Name = "cache-zuyppzgw",
DisplayName
= "cache", ResourceType = "Container", State = "Running" }
526
new() { Name = "Cache-Zuyppzgw",
DisplayName
= "Cache", ResourceType = "Container", State = "Running" }
Backchannel\ResourceSnapshotWatcherTests.cs (12)
202
DisplayName
= "api",
214
DisplayName
= "api",
247
DisplayName
= "api",
260
DisplayName
= "api",
294
DisplayName
= "api",
307
DisplayName
= "api",
341
DisplayName
= "api",
353
DisplayName
= "api",
363
DisplayName
= "api",
488
DisplayName
= $"resource-{resourceIndex}-update-{updateIndex}",
559
DisplayName
= "resource-0",
585
DisplayName
= $"resource-{resourceIndex}",
Commands\AgentMcpCommandTests.cs (13)
240
DisplayName
= "test-resource",
304
DisplayName
= "annotated-resource",
381
DisplayName
= "my-resource",
514
DisplayName
= "db1-mcp",
665
DisplayName
= "unrelated-db",
710
DisplayName
= "pinned-db",
836
DisplayName
= "API",
928
DisplayName
= "pinned-db",
1126
DisplayName
= "pinned-db",
1207
DisplayName
= "db-mcp",
1409
DisplayName
= "db-mcp",
1838
DisplayName
= displayName,
1953
DisplayName
= "contract-resource",
Commands\DescribeCommandTests.cs (50)
499
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
507
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
509
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Stopping" },
511
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Stopping" },
554
DisplayName
= $"resource-{index}",
564
DisplayName
= initialSnapshots[0].DisplayName,
571
DisplayName
= initialSnapshots[^1].DisplayName,
631
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
667
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
668
new ResourceSnapshot { Name = "postgres",
DisplayName
= "postgres", ResourceType = "Container", State = "Running" },
669
new ResourceSnapshot { Name = "frontend",
DisplayName
= "frontend", ResourceType = "Project", State = "Running" },
697
DisplayName
= "redis",
760
new ResourceSnapshot { Name = "redis", Version = 1,
DisplayName
= "redis", ResourceType = "Container", State = "Starting" },
799
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
808
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
810
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Stopping" },
812
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Stopping" },
843
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
873
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
897
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
925
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
956
DisplayName
= "postgres",
995
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
1026
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
1027
new ResourceSnapshot { Name = "aspire-dashboard",
DisplayName
= "aspire-dashboard", ResourceType = "Executable", State = "Hidden" },
1028
new ResourceSnapshot { Name = "hidden-svc",
DisplayName
= "hidden-svc", ResourceType = "Project", State = "Running", IsHidden = true },
1052
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
1053
new ResourceSnapshot { Name = "aspire-dashboard",
DisplayName
= "aspire-dashboard", ResourceType = "Executable", State = "Hidden" },
1054
new ResourceSnapshot { Name = "hidden-svc",
DisplayName
= "hidden-svc", ResourceType = "Project", State = "Running", IsHidden = true },
1080
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
1081
new ResourceSnapshot { Name = "aspire-dashboard",
DisplayName
= "aspire-dashboard", ResourceType = "Executable", State = "Hidden" },
1105
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
1106
new ResourceSnapshot { Name = "aspire-dashboard",
DisplayName
= "aspire-dashboard", ResourceType = "Executable", State = "Hidden" },
1133
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
1134
new ResourceSnapshot { Name = "aspire-dashboard",
DisplayName
= "aspire-dashboard", ResourceType = "Executable", State = "Hidden" },
1165
Name = "frontend",
DisplayName
= "frontend", ResourceType = "Project", State = "Running",
1178
new ResourceSnapshot { Name = "api-2",
DisplayName
= "api", ResourceType = "Project", State = "Running" },
1179
new ResourceSnapshot { Name = "api-1",
DisplayName
= "api", ResourceType = "Project", State = "Running" },
1180
new ResourceSnapshot { Name = "cache",
DisplayName
= "cache", ResourceType = "Container", State = "Running", IsHidden = true },
1181
new ResourceSnapshot { Name = "connection",
DisplayName
= "connection", ResourceType = "Parameter", State = "Running" }
1200
Name = "end",
DisplayName
= "api\" # & <b> \\ `\nnext", ResourceType = "Project", State = "Running",
1222
Name = "frontend",
DisplayName
= "frontend", ResourceType = "Project", State = "Running",
1225
new ResourceSnapshot { Name = "api-2",
DisplayName
= "api", ResourceType = "Project", State = "Running" },
1226
new ResourceSnapshot { Name = "api-1",
DisplayName
= "api", ResourceType = "Project", State = "Running" }
1243
new ResourceSnapshot { Name = "cache",
DisplayName
= "cache", ResourceType = "Container", State = "Hidden" },
1244
new ResourceSnapshot { Name = "connection",
DisplayName
= "connection", ResourceType = "Parameter", State = "Running" }
1275
new ResourceSnapshot { Name = "cache",
DisplayName
= "cache", ResourceType = "Container", State = "Running" }
1403
DisplayName
= "redis",
1469
DisplayName
= "redis",
1482
DisplayName
= "redis",
Commands\ExportCommandTests.cs (26)
50
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
51
new ResourceSnapshot { Name = "apiservice",
DisplayName
= "apiservice", ResourceType = "Project", State = "Running" },
127
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
204
new ResourceSnapshot { Name = "other-resource",
DisplayName
= "other-resource", ResourceType = "Project", State = "Running" },
227
new ResourceSnapshot { Name = "target-resource",
DisplayName
= "target-resource", ResourceType = "Container", State = "Running" },
330
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
331
new ResourceSnapshot { Name = "apiservice-abc",
DisplayName
= "apiservice", ResourceType = "Project", State = "Running" },
332
new ResourceSnapshot { Name = "apiservice-def",
DisplayName
= "apiservice", ResourceType = "Project", State = "Running" },
450
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
451
new ResourceSnapshot { Name = "apiservice",
DisplayName
= "apiservice", ResourceType = "Project", State = "Running" },
507
new ResourceSnapshot { Name = "apiservice",
DisplayName
= "apiservice", ResourceType = "Project", State = "Running" },
508
new ResourceSnapshot { Name = "webfrontend",
DisplayName
= "webfrontend", ResourceType = "Project", State = "Running" },
565
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
566
new ResourceSnapshot { Name = "apiservice-abc",
DisplayName
= "apiservice", ResourceType = "Project", State = "Running" },
567
new ResourceSnapshot { Name = "apiservice-def",
DisplayName
= "apiservice", ResourceType = "Project", State = "Running" },
615
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
616
new ResourceSnapshot { Name = "aspire-dashboard",
DisplayName
= "aspire-dashboard", ResourceType = "Executable", State = "Hidden" },
617
new ResourceSnapshot { Name = "hidden-svc",
DisplayName
= "hidden-svc", ResourceType = "Project", State = "Running", IsHidden = true },
659
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
660
new ResourceSnapshot { Name = "aspire-dashboard",
DisplayName
= "aspire-dashboard", ResourceType = "Executable", State = "Hidden" },
703
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
704
new ResourceSnapshot { Name = "aspire-dashboard",
DisplayName
= "aspire-dashboard", ResourceType = "Executable", State = "Hidden" },
745
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
781
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
824
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
825
new ResourceSnapshot { Name = "apiservice",
DisplayName
= "apiservice", ResourceType = "Project", State = "Running" },
Commands\LogsCommandTests.cs (12)
736
DisplayName
= "redis",
743
DisplayName
= "aspire-dashboard",
826
DisplayName
= "redis",
857
DisplayName
= "redis",
867
DisplayName
= "redis",
874
DisplayName
= "late-hidden",
993
DisplayName
= "redis",
1000
DisplayName
= "aspire-dashboard",
1557
DisplayName
= "redis",
1565
DisplayName
= "apiservice",
1572
DisplayName
= "apiservice",
1636
DisplayName
= "late-hidden",
Commands\ResourceCommandTests.cs (1)
2352
DisplayName
= name,
Commands\TerminalCommandTests.cs (1)
823
DisplayName
= displayName,
Commands\TerminalResourceResolverTests.cs (17)
27
new() { Name = "shell-def456",
DisplayName
= "shell" },
28
new() { Name = "shell-abc123",
DisplayName
= "shell" }
53
new() { Name = "shell-abc123",
DisplayName
= "shell", Properties = Properties(replicaIndex) }
83
new() { Name = "shell-abc123",
DisplayName
= "shell", Properties = Properties("0") },
84
new() { Name = "shell-def456",
DisplayName
= "shell", Properties = Properties("1") }
108
new() { Name = "other-abc123",
DisplayName
= "shell-def456", Properties = Properties("0") },
109
new() { Name = "shell-def456",
DisplayName
= "shell", Properties = Properties("1") }
144
new() { Name = "shell-abc123",
DisplayName
= "shell" },
145
new() { Name = "shell-def456",
DisplayName
= "shell" }
177
new() { Name = "shell-abc123",
DisplayName
= "shell" },
178
new() { Name = "shell-def456",
DisplayName
= "shell" }
214
new() { Name = "shell-def456",
DisplayName
= "shell", Properties = Properties(replicaIndex) }
251
DisplayName
= "shell",
279
new() { Name = "shell-abc123",
DisplayName
= "shell" },
280
new() { Name = "shell-def456",
DisplayName
= "shell" }
306
new() { Name = "shell-abc123",
DisplayName
= "shell", Properties = Properties("0") }
336
ResourceSnapshots = hasOtherInstances ? [new() { Name = "shell-abc123",
DisplayName
= "shell" }] : [],
Commands\TerminalTapePlayCommandTests.cs (7)
135
new() { Name = "shell-abc123",
DisplayName
= "shell" },
136
new() { Name = "shell-def456",
DisplayName
= "shell" }
172
new() { Name = "shell-def456",
DisplayName
= "shell" },
173
new() { Name = "shell-abc123",
DisplayName
= "shell" }
210
DisplayName
= "shell",
216
DisplayName
= "shell",
567
new ResourceSnapshot { Name = "shell-0",
DisplayName
= "shell", ResourceType = "Executable", State = "Running" }
Mcp\ExcludeFromMcpTests.cs (10)
110
DisplayName
= "API Service",
126
DisplayName
= "Secret Service",
168
DisplayName
= "Secret Service",
214
DisplayName
= "Secret Service",
252
DisplayName
= "API Service",
286
DisplayName
= "Secret Service",
425
DisplayName
= "API Service",
432
DisplayName
= "Secret Service",
473
DisplayName
= "API Service",
480
DisplayName
= "Secret Service",
Mcp\ListResourcesToolTests.cs (18)
107
DisplayName
= "API",
127
DisplayName
= "Redis",
134
DisplayName
= "Redis",
141
DisplayName
= "Redis",
177
DisplayName
= "API",
192
DisplayName
= "Redis",
199
DisplayName
= "Redis",
234
DisplayName
= "API",
242
DisplayName
= "Redis",
249
DisplayName
= "Redis",
314
DisplayName
= "API Service",
321
DisplayName
= "Redis",
328
DisplayName
= "PostgreSQL",
489
snapshots.Add(new ResourceSnapshot { Name = "redis-visible",
DisplayName
= "Redis" });
490
snapshots.Add(new ResourceSnapshot { Name = "redis-hidden",
DisplayName
= "Redis", IsHidden = true });
669
DisplayName
= index == 0 ? longText : name,
889
DisplayName
= "API Service",
968
DisplayName
= "Redis",
Mcp\WaitForResourcesToolTests.cs (8)
92
DisplayName
= "API",
310
DisplayName
= "API",
316
DisplayName
= "Worker",
365
DisplayName
= "Hidden",
372
DisplayName
= "Excluded",
383
DisplayName
= "Replica",
389
DisplayName
= "Replica",
571
DisplayName
= "API",
28 references to DisplayName
aspire (25)
Backchannel\ResourceSnapshotMapper.cs (9)
20
/// <see cref="ResourceSnapshot.Name"/> and <see cref="ResourceSnapshot.
DisplayName
"/>.
25
|| string.Equals(s.
DisplayName
, resourceName, StringComparisons.ResourceName));
98
.Where(r => string.Equals(r.
DisplayName
, relationship.ResourceName, StringComparisons.ResourceName))
150
DisplayName = snapshot.
DisplayName
,
303
/// to matching by <see cref="ResourceSnapshot.
DisplayName
"/> only when the display name is
320
var displayNameMatches = snapshots.Where(s => string.Equals(s.
DisplayName
, resourceName, StringComparison.OrdinalIgnoreCase)).ToList();
359
if (string.Equals(item.
DisplayName
, resource.
DisplayName
, StringComparisons.ResourceName))
371
return resource.
DisplayName
?? resource.Name;
Commands\DescribeCommand.cs (2)
250
var resourcesByDisplayName = graphResources.ToLookup(r => r.
DisplayName
, StringComparers.ResourceName);
256
.Where(relationship => !string.Equals(relationship.ResourceName, r.
DisplayName
, StringComparisons.ResourceName))
Commands\McpToolsCommand.cs (2)
77
var resourceName = r.
DisplayName
?? r.Name;
103
var resourceName = resource.
DisplayName
?? resource.Name;
Commands\TerminalResourceResolver.cs (2)
54
var canonicalName = !string.IsNullOrEmpty(snapshot.
DisplayName
)
55
? snapshot.
DisplayName
Mcp\McpResourceToolRefreshService.cs (1)
106
var routedResourceName = resource.
DisplayName
?? resource.Name;
Mcp\Tools\ListResourcesTool.cs (6)
206
DisplayName = GetBoundedText(snapshot.
DisplayName
),
342
if (snapshot.
DisplayName
is { } displayName)
354
var hasDuplicateDisplayName = snapshot.
DisplayName
is { } displayName &&
357
hasDuplicateDisplayName ? snapshot.Name : snapshot.
DisplayName
?? snapshot.Name,
363
if (snapshot.
DisplayName
is not { } displayName || identities.ContainsKey(displayName))
393
if (snapshot.
DisplayName
is not { } displayName || runtimeNames.Contains(displayName))
Mcp\Tools\McpToolHelpers.cs (2)
468
if (snapshot.
DisplayName
is not null)
470
excludedNames.Add(snapshot.
DisplayName
);
Mcp\Tools\WaitForResourcesTool.cs (1)
350
snapshot.
DisplayName
,
Aspire.Cli.Tests (3)
Backchannel\ResourceSnapshotWatcherTests.cs (1)
523
.Select(update => new { update.Name, update.
DisplayName
, update.State })
Commands\DescribeCommandTests.cs (2)
564
DisplayName = initialSnapshots[0].
DisplayName
,
571
DisplayName = initialSnapshots[^1].
DisplayName
,