26 references to TestDashboardClient
Aspire.Dashboard.Components.Tests (26)
Interactions\InteractionsProviderTests.cs (8)
31
var dashboardClient = new
TestDashboardClient
(isEnabled: false);
55
var dashboardClient = new
TestDashboardClient
(isEnabled: true, interactionChannelProvider: () => interactionsChannel);
80
var dashboardClient = new
TestDashboardClient
(isEnabled: true, interactionChannelProvider: () => interactionsChannel);
124
var dashboardClient = new
TestDashboardClient
(isEnabled: true, interactionChannelProvider: () => interactionsChannel);
174
var dashboardClient = new
TestDashboardClient
(isEnabled: true,
231
var dashboardClient = new
TestDashboardClient
(isEnabled: true,
294
var dashboardClient = new
TestDashboardClient
(isEnabled: true,
348
Services.AddSingleton<IDashboardClient>(dashboardClient ?? new
TestDashboardClient
());
Pages\ConsoleLogsTests.cs (11)
49
var dashboardClient = new
TestDashboardClient
(
100
var dashboardClient = new
TestDashboardClient
(
184
var dashboardClient = new
TestDashboardClient
(
232
var dashboardClient = new
TestDashboardClient
(
281
var dashboardClient = new
TestDashboardClient
(
331
var dashboardClient = new
TestDashboardClient
(
388
var dashboardClient = new
TestDashboardClient
(
448
var dashboardClient = new
TestDashboardClient
(
513
var dashboardClient = new
TestDashboardClient
(
571
var dashboardClient = new
TestDashboardClient
(
728
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>>));