55 references to UrlViewModel
Aspire.Dashboard (1)
ServiceClient\Partials.cs (1)
121
select new
UrlViewModel
(u.EndpointName, parsedUri, u.IsInternal, u.IsInactive, new UrlDisplayPropertiesViewModel(TranslateDisplayName(u), u.DisplayProperties.SortOrder)))
Aspire.Dashboard.Components.Tests (12)
Layout\ResourceRowAvailabilityTests.cs (1)
256
urls: [
new
("tcp", new Uri("tcp://localhost:6379"), false, false, UrlDisplayPropertiesViewModel.Empty)])],
Layout\ResourcesLayoutTests.cs (5)
528
new
("https", new Uri(address), false, false, new("Friendly API", 0)),
529
new
("tcp", new Uri(tcpAddress), false, false, UrlDisplayPropertiesViewModel.Empty),
530
new
("internal", new Uri("https://internal.test"), true, false, UrlDisplayPropertiesViewModel.Empty),
531
new
("inactive", new Uri("https://inactive.test"), false, true, UrlDisplayPropertiesViewModel.Empty)
2017
urls: [new
UrlViewModel
("https", new Uri("https://localhost:5001"), false, false, UrlDisplayPropertiesViewModel.Empty)],
Pages\ResourceOverviewEmptyPanelsTests.cs (1)
164
urls: [
new
("http", new Uri("http://localhost:5000"), false, false, UrlDisplayPropertiesViewModel.Empty)],
Pages\ResourceOverviewEndpointTests.cs (5)
34
new
("public", new Uri(original), false, false, new("Catalog API", 5)),
35
new
("public", new Uri(original), true, false, new("Catalog API", 5)),
36
new
("plain", new Uri(original), false, false, UrlDisplayPropertiesViewModel.Empty),
37
new
(null, new Uri(original), false, false, new("Documentation", 0)),
38
new
("same", new Uri(original), false, false, new("same", 0))
Aspire.Dashboard.Playwright.Tests (14)
Integration\Playwright\DashboardInteractionsTests.cs (1)
1071
new
UrlViewModel
("http", new Uri("about:blank#parent-url"), isInternal: false, isInactive: false, UrlDisplayPropertiesViewModel.Empty)
Integration\Playwright\ResourceOverviewEndpointTests.cs (6)
158
new
("https", new Uri(PublicUrl), false, false, new("Catalog API", 5)),
159
new
("https", new Uri(InternalUrl), true, false, new("Catalog API", 5)),
160
new
("openapi", new Uri(s_longUrl), false, false, new(s_longFriendlyName, 4)),
161
new
(null, new Uri("https://localhost:7443/docs"), false, false, new("Documentation", 3)),
162
new
("http", new Uri("http://localhost:5080"), false, false, UrlDisplayPropertiesViewModel.Empty),
163
new
("tcp", new Uri(TcpUrl), true, false, new("Cache connection", 0))
Integration\Playwright\ResourcePaneResponsiveTests.cs (5)
2523
new
("https", new Uri(first), false, false, UrlDisplayPropertiesViewModel.Empty),
2524
new
("http", new Uri(second), false, false, UrlDisplayPropertiesViewModel.Empty)
2778
[
new
("https", new Uri(Endpoint), false, false, new("Friendly API", 0))], ["Backend", "Public"]),
2780
[
new
("https", new Uri("https://example.test/frontend"), false, false, new(LongFriendlyName, 0))], ["Public"]),
2783
[
new
("tcp", new Uri(TcpEndpoint), false, false, UrlDisplayPropertiesViewModel.Empty)], ["Infrastructure"]),
Integration\Playwright\ResourcesTests.cs (1)
626
new
UrlViewModel
("http", new Uri("about:blank#resource-url"), isInternal: false, isInactive: false, UrlDisplayPropertiesViewModel.Empty)
Integration\Playwright\TemplateResourceAssertionsTests.cs (1)
84
urls: [new
UrlViewModel
("http", new Uri("http://localhost:12345"), false, false, UrlDisplayPropertiesViewModel.Empty)],
Aspire.Dashboard.Tests (28)
Model\ExportHelpersTests.cs (1)
21
urls: [new
UrlViewModel
("http", new Uri("http://localhost:5000"), isInternal: false, isInactive: false, UrlDisplayPropertiesViewModel.Empty)],
Model\ResourceUrlHelpersTests.cs (25)
28
var endpoints = GetUrls(ModelTestHelpers.CreateResource(urls: [
new
("Test", new("http://localhost:8080"), isInternal: false, isInactive: false, displayProperties: UrlDisplayPropertiesViewModel.Empty)]));
45
new
("Test", new("http://localhost:8080"), isInternal: false, isInactive: false, displayProperties: UrlDisplayPropertiesViewModel.Empty),
46
new
("Test2", new("http://localhost:8081"), isInternal: false, isInactive: false, displayProperties: UrlDisplayPropertiesViewModel.Empty)])
72
new
("Test", new("http://localhost:8080"), isInternal: false, isInactive: false, displayProperties: UrlDisplayPropertiesViewModel.Empty),
73
new
("Test2", new("tcp://localhost:8081"), isInternal: false, isInactive: false, displayProperties: UrlDisplayPropertiesViewModel.Empty)])
99
new
("Email", new("mailto:test@example.com"), isInternal: false, isInactive: false, displayProperties: UrlDisplayPropertiesViewModel.Empty),
100
new
("FTP", new("ftp://files.example.com/path"), isInternal: false, isInactive: false, displayProperties: UrlDisplayPropertiesViewModel.Empty),
101
new
("Custom", new("myapp://resource/123"), isInternal: false, isInactive: false, displayProperties: UrlDisplayPropertiesViewModel.Empty)])
135
new
("First", new("https://localhost:8080/test"), isInternal:false, isInactive: false, displayProperties: UrlDisplayPropertiesViewModel.Empty),
136
new
("Test", new("https://localhost:8081/test2"), isInternal:false, isInactive: false, displayProperties: UrlDisplayPropertiesViewModel.Empty)
162
new
("First", new("https://localhost:8080/test"), isInternal:true, isInactive : false, displayProperties: UrlDisplayPropertiesViewModel.Empty),
163
new
("Test", new("https://localhost:8081/test2"), isInternal:false, isInactive : false, displayProperties: UrlDisplayPropertiesViewModel.Empty)
181
new
("First", new("https://localhost:8080/test"), isInternal: false, isInactive : true, displayProperties: UrlDisplayPropertiesViewModel.Empty),
182
new
("Test", new("https://localhost:8081/test2"), isInternal: false, isInactive: false, displayProperties: UrlDisplayPropertiesViewModel.Empty)
200
new
("First", new("https://localhost:8080/test"), isInternal:true, isInactive: false, displayProperties: UrlDisplayPropertiesViewModel.Empty),
201
new
("Test", new("https://localhost:8081/test2"), isInternal:false, isInactive: false, displayProperties: UrlDisplayPropertiesViewModel.Empty)
228
new
("a", new("http://localhost:8080"), isInternal: false, isInactive: false, displayProperties: UrlDisplayPropertiesViewModel.Empty),
229
new
("C", new("http://localhost:8080"), isInternal: false, isInactive: false, displayProperties: UrlDisplayPropertiesViewModel.Empty),
230
new
("D", new("tcp://localhost:8080"), isInternal: false, isInactive: false, displayProperties: UrlDisplayPropertiesViewModel.Empty),
231
new
("B", new("tcp://localhost:8080"), isInternal: false, isInactive: false, displayProperties: UrlDisplayPropertiesViewModel.Empty),
232
new
("Z", new("https://localhost:8080"), isInternal: false, isInactive: false, displayProperties: UrlDisplayPropertiesViewModel.Empty)
247
new
("Zero-Https", new("https://localhost:8079"), isInternal: false, isInactive: false, displayProperties: new UrlDisplayPropertiesViewModel(string.Empty, 0)),
248
new
("Zero-Http", new("http://localhost:8080"), isInternal: false, isInactive: false, displayProperties: new UrlDisplayPropertiesViewModel(string.Empty, 0)),
249
new
("Positive", new("http://localhost:8082"), isInternal: false, isInactive: false, displayProperties: new UrlDisplayPropertiesViewModel(string.Empty, 1)),
250
new
("Negative", new("http://localhost:8083"), isInternal: false, isInactive: false, displayProperties: new UrlDisplayPropertiesViewModel(string.Empty, -1))
Model\TelemetryExportServiceTests.cs (1)
1394
urls: [new
UrlViewModel
("http", new Uri("http://localhost:5000"), isInternal: false, isInactive: false, UrlDisplayPropertiesViewModel.Empty)],
ResourceOutgoingPeerResolverTests.cs (1)
30
urls: serviceAddress is null || servicePort is null ? [] : [new
UrlViewModel
(name, new($"http://{serviceAddress}:{servicePort}"), isInternal: false, isInactive: false, displayProperties: UrlDisplayPropertiesViewModel.Empty)]);