40 references to TestDashboardClient
Aspire.Dashboard.Components.Tests (40)
Controls\ApplicationNameTests.cs (1)
65
Services.AddSingleton<IDashboardClient>(new
TestDashboardClient
(applicationName: "<marquee>An HTML title!</marquee>"));
Interactions\InteractionsProviderTests.cs (10)
36
var dashboardClient = new
TestDashboardClient
(isEnabled: false);
60
var dashboardClient = new
TestDashboardClient
(isEnabled: true, interactionChannelProvider: () => interactionsChannel);
88
var dashboardClient = new
TestDashboardClient
(isEnabled: true, interactionChannelProvider: () => interactionsChannel);
135
var dashboardClient = new
TestDashboardClient
(isEnabled: true, interactionChannelProvider: () => interactionsChannel);
188
var dashboardClient = new
TestDashboardClient
(isEnabled: true,
248
var dashboardClient = new
TestDashboardClient
(isEnabled: true,
309
var dashboardClient = new
TestDashboardClient
(isEnabled: true,
382
var dashboardClient = new
TestDashboardClient
(isEnabled: true,
462
var dashboardClient = new
TestDashboardClient
(isEnabled: true,
519
Services.AddSingleton<IDashboardClient>(dashboardClient ?? new
TestDashboardClient
());
Pages\ConsoleLogsTests.cs (12)
43
var dashboardClient = new
TestDashboardClient
(
94
var dashboardClient = new
TestDashboardClient
(
179
var dashboardClient = new
TestDashboardClient
(
285
var dashboardClient = new
TestDashboardClient
(
333
var dashboardClient = new
TestDashboardClient
(
382
var dashboardClient = new
TestDashboardClient
(
432
var dashboardClient = new
TestDashboardClient
(
489
var dashboardClient = new
TestDashboardClient
(
549
var dashboardClient = new
TestDashboardClient
(
614
var dashboardClient = new
TestDashboardClient
(
672
var dashboardClient = new
TestDashboardClient
(
807
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)
62
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
());