31 references to TestDashboardClient
Aspire.Dashboard.Components.Tests (31)
Controls\ApplicationNameTests.cs (1)
65Services.AddSingleton<IDashboardClient>(new TestDashboardClient(applicationName: "<marquee>An HTML title!</marquee>"));
Interactions\InteractionsProviderTests.cs (10)
36var dashboardClient = new TestDashboardClient(isEnabled: false); 60var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 88var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 135var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 188var dashboardClient = new TestDashboardClient(isEnabled: true, 248var dashboardClient = new TestDashboardClient(isEnabled: true, 309var dashboardClient = new TestDashboardClient(isEnabled: true, 382var dashboardClient = new TestDashboardClient(isEnabled: true, 462var dashboardClient = new TestDashboardClient(isEnabled: true, 519Services.AddSingleton<IDashboardClient>(dashboardClient ?? new TestDashboardClient());
Pages\ConsoleLogsTests.cs (12)
52var dashboardClient = new TestDashboardClient( 103var dashboardClient = new TestDashboardClient( 188var dashboardClient = new TestDashboardClient( 294var dashboardClient = new TestDashboardClient( 343var dashboardClient = new TestDashboardClient( 392var dashboardClient = new TestDashboardClient( 442var dashboardClient = new TestDashboardClient( 499var dashboardClient = new TestDashboardClient( 559var dashboardClient = new TestDashboardClient( 624var dashboardClient = new TestDashboardClient( 682var dashboardClient = new TestDashboardClient( 841Services.AddSingleton<IDashboardClient>(dashboardClient ?? new TestDashboardClient());
Pages\LoginTests.cs (1)
66Services.AddSingleton<IDashboardClient>(new TestDashboardClient());
Pages\ResourcesTests.cs (5)
38var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel); 136var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 188var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 223var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, 320var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel);
Shared\ResourceSetupHelpers.cs (1)
124context.Services.AddSingleton<IDashboardClient>(dashboardClient ?? new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>));
Shared\StructuredLogsSetupHelpers.cs (1)
34context.Services.AddSingleton<IDashboardClient>(new TestDashboardClient());