41 instantiations of TestDashboardClient
Aspire.Dashboard.Components.Tests (41)
Controls\ApplicationNameTests.cs (1)
65Services.AddSingleton<IDashboardClient>(new TestDashboardClient(applicationName: "<marquee>An HTML title!</marquee>"));
Interactions\InteractionsProviderTests.cs (10)
38var dashboardClient = new TestDashboardClient(isEnabled: false); 62var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 90var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 137var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 190var dashboardClient = new TestDashboardClient(isEnabled: true, 250var dashboardClient = new TestDashboardClient(isEnabled: true, 311var dashboardClient = new TestDashboardClient(isEnabled: true, 384var dashboardClient = new TestDashboardClient(isEnabled: true, 464var dashboardClient = new TestDashboardClient(isEnabled: true, 521Services.AddSingleton<IDashboardClient>(dashboardClient ?? new TestDashboardClient());
Pages\ConsoleLogsTests.cs (13)
43var dashboardClient = new TestDashboardClient( 94var dashboardClient = new TestDashboardClient( 180var dashboardClient = new TestDashboardClient( 281var dashboardClient = new TestDashboardClient( 333var dashboardClient = new TestDashboardClient( 381var dashboardClient = new TestDashboardClient( 430var dashboardClient = new TestDashboardClient( 480var dashboardClient = new TestDashboardClient( 537var dashboardClient = new TestDashboardClient( 597var dashboardClient = new TestDashboardClient( 662var dashboardClient = new TestDashboardClient( 720var dashboardClient = new TestDashboardClient( 855Services.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)
63context.Services.AddSingleton<IDashboardClient>(dashboardClient ?? new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>));
Shared\StructuredLogsSetupHelpers.cs (1)
24context.Services.AddSingleton<IDashboardClient>(new TestDashboardClient());
38 references to TestDashboardClient
Aspire.Dashboard.Components.Tests (38)
Interactions\InteractionsProviderTests.cs (10)
38var dashboardClient = new TestDashboardClient(isEnabled: false); 62var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 90var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 137var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 190var dashboardClient = new TestDashboardClient(isEnabled: true, 250var dashboardClient = new TestDashboardClient(isEnabled: true, 311var dashboardClient = new TestDashboardClient(isEnabled: true, 384var dashboardClient = new TestDashboardClient(isEnabled: true, 464var dashboardClient = new TestDashboardClient(isEnabled: true, 512private void SetupInteractionProviderServices(TestDashboardClient? dashboardClient = null, TestDialogService? dialogService = null, TestMessageService? messageService = null)
Layout\MainLayoutTests.cs (1)
196Services.AddSingleton<IDashboardClient, TestDashboardClient>();
Pages\ConsoleLogsTests.cs (13)
43var dashboardClient = new TestDashboardClient( 94var dashboardClient = new TestDashboardClient( 180var dashboardClient = new TestDashboardClient( 281var dashboardClient = new TestDashboardClient( 333var dashboardClient = new TestDashboardClient( 381var dashboardClient = new TestDashboardClient( 430var dashboardClient = new TestDashboardClient( 480var dashboardClient = new TestDashboardClient( 537var dashboardClient = new TestDashboardClient( 597var dashboardClient = new TestDashboardClient( 662var dashboardClient = new TestDashboardClient( 720var dashboardClient = new TestDashboardClient( 833private 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(