26 instantiations of 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>>));
25 references to TestDashboardClient
Aspire.Dashboard.Components.Tests (25)
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,
339
private void SetupInteractionProviderServices(
TestDashboardClient
? dashboardClient = null, TestDialogService? dialogService = null)
Layout\MainLayoutTests.cs (1)
134
Services.AddSingleton<IDashboardClient,
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(
684
private void SetupConsoleLogsServices(
TestDashboardClient
? dashboardClient = null, TestTimeProvider? timeProvider = null)
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);