80 instantiations of TestDashboardClient
Aspire.Dashboard.Components.Tests (80)
Controls\ApplicationNameTests.cs (1)
58Services.AddSingleton<IDashboardClient>(new TestDashboardClient(applicationName: "<marquee>An HTML title!</marquee>"));
Controls\ResourceDetailsTests.cs (1)
464Services.AddSingleton<IDashboardClient>(new TestDashboardClient(isEnabled: true));
Dialogs\InteractionsInputDialogTests.cs (3)
40DashboardClient = new TestDashboardClient(), 96DashboardClient = new TestDashboardClient(), 159DashboardClient = new TestDashboardClient(),
Dialogs\ManageDataDialogTests.cs (3)
43var dashboardClient = new TestDashboardClient( 160var dashboardClient = new TestDashboardClient(isEnabled: false, initialResources: [], isReadOnly: dashboardClientIsReadOnly); 254var dashboardClient = new TestDashboardClient(
Interactions\InteractionsProviderTests.cs (15)
38var dashboardClient = new TestDashboardClient(isEnabled: false); 62var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 94var liveDashboardClient = new TestDashboardClient( 103var selectedDashboardClient = new TestDashboardClient( 141var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 188var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 241var dashboardClient = new TestDashboardClient(isEnabled: true, 301var dashboardClient = new TestDashboardClient(isEnabled: true, 363var dashboardClient = new TestDashboardClient(isEnabled: true, 436var dashboardClient = new TestDashboardClient(isEnabled: true, 516var dashboardClient = new TestDashboardClient(isEnabled: true, 573var dashboardClient = new TestDashboardClient(isEnabled: true, 633var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 690Services.AddSingleton<IDashboardClient>(selectedDashboardClient ?? new TestDashboardClient()); 691Services.AddKeyedSingleton<IDashboardClient>(DashboardClient.LiveAppHostServiceKey, dashboardClient ?? new TestDashboardClient());
Layout\MainLayoutTests.cs (1)
1079var dashboardClient = new TestDashboardClient();
Layout\MobileNavMenuTests.cs (1)
101Services.AddSingleton<IDashboardClient>(new TestDashboardClient(isEnabled: true));
Pages\ConsoleLogsTerminalTests.cs (10)
46var dashboardClient = new TestDashboardClient( 98var dashboardClient = new TestDashboardClient( 148var dashboardClient = new TestDashboardClient( 203var dashboardClient = new TestDashboardClient( 252var dashboardClient = new TestDashboardClient( 305var dashboardClient = new TestDashboardClient( 354var dashboardClient = new TestDashboardClient( 396var dashboardClient = new TestDashboardClient( 458var dashboardClient = new TestDashboardClient( 539var dashboardClient = new TestDashboardClient(
Pages\ConsoleLogsTests.cs (21)
45var dashboardClient = new TestDashboardClient( 96var dashboardClient = new TestDashboardClient( 182var dashboardClient = new TestDashboardClient( 285var dashboardClient = new TestDashboardClient( 337var dashboardClient = new TestDashboardClient( 386var liveClient = new TestDashboardClient( 395var currentResourceRepository = new TestDashboardClient( 425var dashboardClient = new TestDashboardClient( 447var dashboardClient = new TestDashboardClient( 488var dashboardClient = new TestDashboardClient( 514var dashboardClient = new TestDashboardClient( 563var dashboardClient = new TestDashboardClient( 613var dashboardClient = new TestDashboardClient( 679var dashboardClient = new TestDashboardClient( 716var dashboardClient = new TestDashboardClient( 771var dashboardClient = new TestDashboardClient( 811var dashboardClient = new TestDashboardClient( 883var dashboardClient = new TestDashboardClient( 923var dashboardClient = new TestDashboardClient( 981var dashboardClient = new TestDashboardClient( 1134Services.AddSingleton<IDashboardClient>(dashboardClient ?? new TestDashboardClient());
Pages\LoginTests.cs (1)
58Services.AddSingleton<IDashboardClient>(new TestDashboardClient());
Pages\MetricsTests.cs (1)
46Services.AddSingleton<IDashboardClient>(new TestDashboardClient(isReadOnly: dashboardClientIsReadOnly));
Pages\ResourcesTests.cs (20)
53var dashboardClient = new TestDashboardClient( 88var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel); 186var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 238var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 274var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: [resource], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 315var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 343var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 374var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 401var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, 498var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel); 631var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 658var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 687var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 717var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 749var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 831var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 874var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 908var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 952var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 987var dashboardClient = new TestDashboardClient(
Shared\ResourceSetupHelpers.cs (1)
66context.Services.AddSingleton<IDashboardClient>(dashboardClient ?? new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>));
Shared\StructuredLogsSetupHelpers.cs (1)
23context.Services.AddSingleton<IDashboardClient>(new TestDashboardClient());
72 references to TestDashboardClient
Aspire.Dashboard.Components.Tests (72)
Dialogs\ManageDataDialogTests.cs (4)
43var dashboardClient = new TestDashboardClient( 160var dashboardClient = new TestDashboardClient(isEnabled: false, initialResources: [], isReadOnly: dashboardClientIsReadOnly); 254var dashboardClient = new TestDashboardClient( 275private void SetupManageDataDialogServices(TestDashboardClient dashboardClient)
Interactions\InteractionsProviderTests.cs (15)
38var dashboardClient = new TestDashboardClient(isEnabled: false); 62var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 94var liveDashboardClient = new TestDashboardClient( 103var selectedDashboardClient = new TestDashboardClient( 141var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 188var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 241var dashboardClient = new TestDashboardClient(isEnabled: true, 301var dashboardClient = new TestDashboardClient(isEnabled: true, 363var dashboardClient = new TestDashboardClient(isEnabled: true, 436var dashboardClient = new TestDashboardClient(isEnabled: true, 516var dashboardClient = new TestDashboardClient(isEnabled: true, 573var dashboardClient = new TestDashboardClient(isEnabled: true, 633var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 678TestDashboardClient? dashboardClient = null, 681TestDashboardClient? selectedDashboardClient = null)
Layout\MainLayoutTests.cs (1)
1079var dashboardClient = new TestDashboardClient();
Pages\ConsoleLogsTerminalTests.cs (10)
46var dashboardClient = new TestDashboardClient( 98var dashboardClient = new TestDashboardClient( 148var dashboardClient = new TestDashboardClient( 203var dashboardClient = new TestDashboardClient( 252var dashboardClient = new TestDashboardClient( 305var dashboardClient = new TestDashboardClient( 354var dashboardClient = new TestDashboardClient( 396var dashboardClient = new TestDashboardClient( 458var dashboardClient = new TestDashboardClient( 539var dashboardClient = new TestDashboardClient(
Pages\ConsoleLogsTests.cs (21)
45var dashboardClient = new TestDashboardClient( 96var dashboardClient = new TestDashboardClient( 182var dashboardClient = new TestDashboardClient( 285var dashboardClient = new TestDashboardClient( 337var dashboardClient = new TestDashboardClient( 386var liveClient = new TestDashboardClient( 395var currentResourceRepository = new TestDashboardClient( 425var dashboardClient = new TestDashboardClient( 447var dashboardClient = new TestDashboardClient( 488var dashboardClient = new TestDashboardClient( 514var dashboardClient = new TestDashboardClient( 563var dashboardClient = new TestDashboardClient( 613var dashboardClient = new TestDashboardClient( 679var dashboardClient = new TestDashboardClient( 716var dashboardClient = new TestDashboardClient( 771var dashboardClient = new TestDashboardClient( 811var dashboardClient = new TestDashboardClient( 883var dashboardClient = new TestDashboardClient( 923var dashboardClient = new TestDashboardClient( 981var dashboardClient = new TestDashboardClient( 1110private void SetupConsoleLogsServices(TestDashboardClient? dashboardClient = null, TestTimeProvider? timeProvider = null, IResourceRepository? resourceRepository = null)
Pages\ResourcesTests.cs (20)
53var dashboardClient = new TestDashboardClient( 88var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel); 186var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 238var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 274var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: [resource], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 315var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 343var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 374var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 401var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, 498var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel); 631var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 658var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 687var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 717var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 749var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 831var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 874var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 908var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 952var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 987var dashboardClient = new TestDashboardClient(
Shared\FluentUISetupHelpers.cs (1)
223context.Services.AddSingleton<IDashboardClient, TestDashboardClient>();