41 references to TestDashboardClient
Aspire.Dashboard.Components.Tests (41)
Controls\ApplicationNameTests.cs (1)
65
Services.AddSingleton<IDashboardClient>(new
TestDashboardClient
(applicationName: "<marquee>An HTML title!</marquee>"));
Interactions\InteractionsProviderTests.cs (10)
38
var dashboardClient = new
TestDashboardClient
(isEnabled: false);
62
var dashboardClient = new
TestDashboardClient
(isEnabled: true, interactionChannelProvider: () => interactionsChannel);
90
var dashboardClient = new
TestDashboardClient
(isEnabled: true, interactionChannelProvider: () => interactionsChannel);
137
var dashboardClient = new
TestDashboardClient
(isEnabled: true, interactionChannelProvider: () => interactionsChannel);
190
var dashboardClient = new
TestDashboardClient
(isEnabled: true,
250
var dashboardClient = new
TestDashboardClient
(isEnabled: true,
311
var dashboardClient = new
TestDashboardClient
(isEnabled: true,
384
var dashboardClient = new
TestDashboardClient
(isEnabled: true,
464
var dashboardClient = new
TestDashboardClient
(isEnabled: true,
521
Services.AddSingleton<IDashboardClient>(dashboardClient ?? new
TestDashboardClient
());
Pages\ConsoleLogsTests.cs (13)
43
var dashboardClient = new
TestDashboardClient
(
94
var dashboardClient = new
TestDashboardClient
(
180
var dashboardClient = new
TestDashboardClient
(
281
var dashboardClient = new
TestDashboardClient
(
333
var dashboardClient = new
TestDashboardClient
(
381
var dashboardClient = new
TestDashboardClient
(
430
var dashboardClient = new
TestDashboardClient
(
480
var dashboardClient = new
TestDashboardClient
(
537
var dashboardClient = new
TestDashboardClient
(
597
var dashboardClient = new
TestDashboardClient
(
662
var dashboardClient = new
TestDashboardClient
(
720
var dashboardClient = new
TestDashboardClient
(
855
Services.AddSingleton<IDashboardClient>(dashboardClient ?? new
TestDashboardClient
());
Pages\LoginTests.cs (1)
58
Services.AddSingleton<IDashboardClient>(new
TestDashboardClient
());
Pages\ResourcesTests.cs (14)
39
var dashboardClient = new
TestDashboardClient
(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel);
137
var dashboardClient = new
TestDashboardClient
(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
189
var dashboardClient = new
TestDashboardClient
(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
224
var dashboardClient = new
TestDashboardClient
(isEnabled: true, initialResources: initialResources,
321
var dashboardClient = new
TestDashboardClient
(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel);
402
var dashboardClient = new
TestDashboardClient
(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
430
var dashboardClient = new
TestDashboardClient
(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
460
var dashboardClient = new
TestDashboardClient
(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
492
var dashboardClient = new
TestDashboardClient
(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
525
var dashboardClient = new
TestDashboardClient
(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
566
var dashboardClient = new
TestDashboardClient
(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
610
var dashboardClient = new
TestDashboardClient
(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
652
var dashboardClient = new
TestDashboardClient
(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
687
var dashboardClient = new
TestDashboardClient
(
Shared\ResourceSetupHelpers.cs (1)
63
context.Services.AddSingleton<IDashboardClient>(dashboardClient ?? new
TestDashboardClient
(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>));
Shared\StructuredLogsSetupHelpers.cs (1)
24
context.Services.AddSingleton<IDashboardClient>(new
TestDashboardClient
());