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)
52
var dashboardClient = new
TestDashboardClient
(
103
var dashboardClient = new
TestDashboardClient
(
188
var dashboardClient = new
TestDashboardClient
(
294
var dashboardClient = new
TestDashboardClient
(
343
var dashboardClient = new
TestDashboardClient
(
392
var dashboardClient = new
TestDashboardClient
(
442
var dashboardClient = new
TestDashboardClient
(
499
var dashboardClient = new
TestDashboardClient
(
559
var dashboardClient = new
TestDashboardClient
(
624
var dashboardClient = new
TestDashboardClient
(
682
var dashboardClient = new
TestDashboardClient
(
841
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)
124
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)
52
var
dashboardClient = new TestDashboardClient(
103
var
dashboardClient = new TestDashboardClient(
188
var
dashboardClient = new TestDashboardClient(
294
var
dashboardClient = new TestDashboardClient(
343
var
dashboardClient = new TestDashboardClient(
392
var
dashboardClient = new TestDashboardClient(
442
var
dashboardClient = new TestDashboardClient(
499
var
dashboardClient = new TestDashboardClient(
559
var
dashboardClient = new TestDashboardClient(
624
var
dashboardClient = new TestDashboardClient(
682
var
dashboardClient = new TestDashboardClient(
795
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);