31 references to TestDashboardClient
Aspire.Dashboard.Components.Tests (31)
Controls\ApplicationNameTests.cs (1)
65
Services.AddSingleton<IDashboardClient>(new
TestDashboardClient
(applicationName: "<marquee>An HTML title!</marquee>"));
Interactions\InteractionsProviderTests.cs (10)
35
var dashboardClient = new
TestDashboardClient
(isEnabled: false);
59
var dashboardClient = new
TestDashboardClient
(isEnabled: true, interactionChannelProvider: () => interactionsChannel);
84
var dashboardClient = new
TestDashboardClient
(isEnabled: true, interactionChannelProvider: () => interactionsChannel);
128
var dashboardClient = new
TestDashboardClient
(isEnabled: true, interactionChannelProvider: () => interactionsChannel);
178
var dashboardClient = new
TestDashboardClient
(isEnabled: true,
235
var dashboardClient = new
TestDashboardClient
(isEnabled: true,
293
var dashboardClient = new
TestDashboardClient
(isEnabled: true,
363
var dashboardClient = new
TestDashboardClient
(isEnabled: true,
440
var dashboardClient = new
TestDashboardClient
(isEnabled: true,
494
Services.AddSingleton<IDashboardClient>(dashboardClient ?? new
TestDashboardClient
());
Pages\ConsoleLogsTests.cs (12)
51
var dashboardClient = new
TestDashboardClient
(
102
var dashboardClient = new
TestDashboardClient
(
187
var dashboardClient = new
TestDashboardClient
(
293
var dashboardClient = new
TestDashboardClient
(
341
var dashboardClient = new
TestDashboardClient
(
390
var dashboardClient = new
TestDashboardClient
(
440
var dashboardClient = new
TestDashboardClient
(
497
var dashboardClient = new
TestDashboardClient
(
557
var dashboardClient = new
TestDashboardClient
(
622
var dashboardClient = new
TestDashboardClient
(
680
var dashboardClient = new
TestDashboardClient
(
838
Services.AddSingleton<IDashboardClient>(dashboardClient ?? new
TestDashboardClient
());
Pages\LoginTests.cs (1)
66
Services.AddSingleton<IDashboardClient>(new
TestDashboardClient
());
Pages\ResourcesTests.cs (5)
38
var dashboardClient = new
TestDashboardClient
(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel);
136
var dashboardClient = new
TestDashboardClient
(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
188
var dashboardClient = new
TestDashboardClient
(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
223
var dashboardClient = new
TestDashboardClient
(isEnabled: true, initialResources: initialResources,
320
var dashboardClient = new
TestDashboardClient
(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel);
Shared\ResourceSetupHelpers.cs (1)
121
context.Services.AddSingleton<IDashboardClient>(dashboardClient ?? new
TestDashboardClient
(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>));
Shared\StructuredLogsSetupHelpers.cs (1)
34
context.Services.AddSingleton<IDashboardClient>(new
TestDashboardClient
());