55 references to UrlViewModel
Aspire.Dashboard (1)
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 (12)
Layout\ResourceRowAvailabilityTests.cs (1)
256urls: [new("tcp", new Uri("tcp://localhost:6379"), false, false, UrlDisplayPropertiesViewModel.Empty)])],
Layout\ResourcesLayoutTests.cs (5)
528new("https", new Uri(address), false, false, new("Friendly API", 0)), 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 (5)
34new("public", new Uri(original), false, false, new("Catalog API", 5)), 35new("public", new Uri(original), true, false, new("Catalog API", 5)), 36new("plain", new Uri(original), false, false, UrlDisplayPropertiesViewModel.Empty), 37new(null, new Uri(original), false, false, new("Documentation", 0)), 38new("same", new Uri(original), false, false, new("same", 0))
Aspire.Dashboard.Playwright.Tests (14)
Integration\Playwright\DashboardInteractionsTests.cs (1)
1071new UrlViewModel("http", new Uri("about:blank#parent-url"), isInternal: false, isInactive: false, UrlDisplayPropertiesViewModel.Empty)
Integration\Playwright\ResourceOverviewEndpointTests.cs (6)
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)), 162new("http", new Uri("http://localhost:5080"), false, false, UrlDisplayPropertiesViewModel.Empty), 163new("tcp", new Uri(TcpUrl), true, false, new("Cache connection", 0))
Integration\Playwright\ResourcePaneResponsiveTests.cs (5)
2523new("https", new Uri(first), false, false, UrlDisplayPropertiesViewModel.Empty), 2524new("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)
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 (28)
Model\ExportHelpersTests.cs (1)
21urls: [new UrlViewModel("http", new Uri("http://localhost:5000"), isInternal: false, isInactive: false, UrlDisplayPropertiesViewModel.Empty)],
Model\ResourceUrlHelpersTests.cs (25)
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) 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))
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)]);