31 instantiations of TestDashboardClient
Aspire.Dashboard.Components.Tests (31)
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)
51
var dashboardClient = new
TestDashboardClient
(
102
var dashboardClient = new
TestDashboardClient
(
187
var dashboardClient = new
TestDashboardClient
(
293
var dashboardClient = new
TestDashboardClient
(
341
var dashboardClient = new
TestDashboardClient
(
390
var dashboardClient = new
TestDashboardClient
(
440
var dashboardClient = new
TestDashboardClient
(
497
var dashboardClient = new
TestDashboardClient
(
557
var dashboardClient = new
TestDashboardClient
(
622
var dashboardClient = new
TestDashboardClient
(
680
var dashboardClient = new
TestDashboardClient
(
839
Services.AddSingleton<IDashboardClient>(dashboardClient ?? new
TestDashboardClient
());
Pages\LoginTests.cs (1)
66
Services.AddSingleton<IDashboardClient>(new
TestDashboardClient
());
Pages\ResourcesTests.cs (5)
38
var dashboardClient = new
TestDashboardClient
(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel);
136
var dashboardClient = new
TestDashboardClient
(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
188
var dashboardClient = new
TestDashboardClient
(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
223
var dashboardClient = new
TestDashboardClient
(isEnabled: true, initialResources: initialResources,
320
var dashboardClient = new
TestDashboardClient
(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel);
Shared\ResourceSetupHelpers.cs (1)
123
context.Services.AddSingleton<IDashboardClient>(dashboardClient ?? new
TestDashboardClient
(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>));
Shared\StructuredLogsSetupHelpers.cs (1)
34
context.Services.AddSingleton<IDashboardClient>(new
TestDashboardClient
());
28 references to TestDashboardClient
Aspire.Dashboard.Components.Tests (28)
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,
510
private void SetupInteractionProviderServices(
TestDashboardClient
? dashboardClient = null, TestDialogService? dialogService = null, TestMessageService? messageService = null)
Layout\MainLayoutTests.cs (1)
196
Services.AddSingleton<IDashboardClient,
TestDashboardClient
>();
Pages\ConsoleLogsTests.cs (12)
51
var
dashboardClient = new TestDashboardClient(
102
var
dashboardClient = new TestDashboardClient(
187
var
dashboardClient = new TestDashboardClient(
293
var
dashboardClient = new TestDashboardClient(
341
var
dashboardClient = new TestDashboardClient(
390
var
dashboardClient = new TestDashboardClient(
440
var
dashboardClient = new TestDashboardClient(
497
var
dashboardClient = new TestDashboardClient(
557
var
dashboardClient = new TestDashboardClient(
622
var
dashboardClient = new TestDashboardClient(
680
var
dashboardClient = new TestDashboardClient(
793
private void SetupConsoleLogsServices(
TestDashboardClient
? dashboardClient = null, TestTimeProvider? timeProvider = null)
Pages\ResourcesTests.cs (5)
38
var
dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel);
136
var
dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
188
var
dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
223
var
dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources,
320
var
dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel);