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