31 references to TestDashboardClient
Aspire.Dashboard.Components.Tests (31)
Controls\ApplicationNameTests.cs (1)
64Services.AddSingleton<IDashboardClient>(new TestDashboardClient(applicationName: "<marquee>An HTML title!</marquee>"));
Interactions\InteractionsProviderTests.cs (10)
34var dashboardClient = new TestDashboardClient(isEnabled: false); 58var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 83var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 127var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 177var dashboardClient = new TestDashboardClient(isEnabled: true, 234var dashboardClient = new TestDashboardClient(isEnabled: true, 292var dashboardClient = new TestDashboardClient(isEnabled: true, 362var dashboardClient = new TestDashboardClient(isEnabled: true, 437var dashboardClient = new TestDashboardClient(isEnabled: true, 491Services.AddSingleton<IDashboardClient>(dashboardClient ?? new TestDashboardClient());
Pages\ConsoleLogsTests.cs (12)
49var dashboardClient = new TestDashboardClient( 100var dashboardClient = new TestDashboardClient( 185var dashboardClient = new TestDashboardClient( 291var dashboardClient = new TestDashboardClient( 339var dashboardClient = new TestDashboardClient( 388var dashboardClient = new TestDashboardClient( 438var dashboardClient = new TestDashboardClient( 495var dashboardClient = new TestDashboardClient( 555var dashboardClient = new TestDashboardClient( 620var dashboardClient = new TestDashboardClient( 678var dashboardClient = new TestDashboardClient( 835Services.AddSingleton<IDashboardClient>(dashboardClient ?? new TestDashboardClient());
Pages\LoginTests.cs (1)
65Services.AddSingleton<IDashboardClient>(new TestDashboardClient());
Pages\ResourcesTests.cs (5)
37var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel); 135var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 187var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 222var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, 319var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel);
Shared\ResourceSetupHelpers.cs (1)
116context.Services.AddSingleton<IDashboardClient>(dashboardClient ?? new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>));
Shared\StructuredLogsSetupHelpers.cs (1)
30context.Services.AddSingleton<IDashboardClient>(new TestDashboardClient());