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