40 instantiations of TestDashboardClient
Aspire.Dashboard.Components.Tests (40)
Controls\ApplicationNameTests.cs (1)
65Services.AddSingleton<IDashboardClient>(new TestDashboardClient(applicationName: "<marquee>An HTML title!</marquee>"));
Interactions\InteractionsProviderTests.cs (10)
36var dashboardClient = new TestDashboardClient(isEnabled: false); 60var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 88var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 135var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 188var dashboardClient = new TestDashboardClient(isEnabled: true, 248var dashboardClient = new TestDashboardClient(isEnabled: true, 309var dashboardClient = new TestDashboardClient(isEnabled: true, 382var dashboardClient = new TestDashboardClient(isEnabled: true, 462var dashboardClient = new TestDashboardClient(isEnabled: true, 519Services.AddSingleton<IDashboardClient>(dashboardClient ?? new TestDashboardClient());
Pages\ConsoleLogsTests.cs (12)
43var dashboardClient = new TestDashboardClient( 94var dashboardClient = new TestDashboardClient( 179var dashboardClient = new TestDashboardClient( 285var dashboardClient = new TestDashboardClient( 333var dashboardClient = new TestDashboardClient( 382var dashboardClient = new TestDashboardClient( 432var dashboardClient = new TestDashboardClient( 489var dashboardClient = new TestDashboardClient( 549var dashboardClient = new TestDashboardClient( 614var dashboardClient = new TestDashboardClient( 672var dashboardClient = new TestDashboardClient( 807Services.AddSingleton<IDashboardClient>(dashboardClient ?? new TestDashboardClient());
Pages\LoginTests.cs (1)
58Services.AddSingleton<IDashboardClient>(new TestDashboardClient());
Pages\ResourcesTests.cs (14)
39var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel); 137var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 189var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 224var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, 321var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel); 402var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 430var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 460var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 492var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 525var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 566var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 610var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 652var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 687var dashboardClient = new TestDashboardClient(
Shared\ResourceSetupHelpers.cs (1)
62context.Services.AddSingleton<IDashboardClient>(dashboardClient ?? new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>));
Shared\StructuredLogsSetupHelpers.cs (1)
24context.Services.AddSingleton<IDashboardClient>(new TestDashboardClient());
37 references to TestDashboardClient
Aspire.Dashboard.Components.Tests (37)
Interactions\InteractionsProviderTests.cs (10)
36var dashboardClient = new TestDashboardClient(isEnabled: false); 60var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 88var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 135var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 188var dashboardClient = new TestDashboardClient(isEnabled: true, 248var dashboardClient = new TestDashboardClient(isEnabled: true, 309var dashboardClient = new TestDashboardClient(isEnabled: true, 382var dashboardClient = new TestDashboardClient(isEnabled: true, 462var dashboardClient = new TestDashboardClient(isEnabled: true, 510private void SetupInteractionProviderServices(TestDashboardClient? dashboardClient = null, TestDialogService? dialogService = null, TestMessageService? messageService = null)
Layout\MainLayoutTests.cs (1)
196Services.AddSingleton<IDashboardClient, TestDashboardClient>();
Pages\ConsoleLogsTests.cs (12)
43var dashboardClient = new TestDashboardClient( 94var dashboardClient = new TestDashboardClient( 179var dashboardClient = new TestDashboardClient( 285var dashboardClient = new TestDashboardClient( 333var dashboardClient = new TestDashboardClient( 382var dashboardClient = new TestDashboardClient( 432var dashboardClient = new TestDashboardClient( 489var dashboardClient = new TestDashboardClient( 549var dashboardClient = new TestDashboardClient( 614var dashboardClient = new TestDashboardClient( 672var dashboardClient = new TestDashboardClient( 785private void SetupConsoleLogsServices(TestDashboardClient? dashboardClient = null, TestTimeProvider? timeProvider = null)
Pages\ResourcesTests.cs (14)
39var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel); 137var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 189var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 224var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, 321var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel); 402var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 430var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 460var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 492var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 525var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 566var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 610var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 652var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 687var dashboardClient = new TestDashboardClient(