31 instantiations of TestDashboardClient
Aspire.Dashboard.Components.Tests (31)
Controls\ApplicationNameTests.cs (1)
65Services.AddSingleton<IDashboardClient>(new TestDashboardClient(applicationName: "<marquee>An HTML title!</marquee>"));
Interactions\InteractionsProviderTests.cs (10)
35var dashboardClient = new TestDashboardClient(isEnabled: false); 59var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 84var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 128var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 178var dashboardClient = new TestDashboardClient(isEnabled: true, 235var dashboardClient = new TestDashboardClient(isEnabled: true, 293var dashboardClient = new TestDashboardClient(isEnabled: true, 363var dashboardClient = new TestDashboardClient(isEnabled: true, 440var dashboardClient = new TestDashboardClient(isEnabled: true, 494Services.AddSingleton<IDashboardClient>(dashboardClient ?? new TestDashboardClient());
Pages\ConsoleLogsTests.cs (12)
51var dashboardClient = new TestDashboardClient( 102var dashboardClient = new TestDashboardClient( 187var dashboardClient = new TestDashboardClient( 293var dashboardClient = new TestDashboardClient( 341var dashboardClient = new TestDashboardClient( 390var dashboardClient = new TestDashboardClient( 440var dashboardClient = new TestDashboardClient( 497var dashboardClient = new TestDashboardClient( 557var dashboardClient = new TestDashboardClient( 622var dashboardClient = new TestDashboardClient( 680var dashboardClient = new TestDashboardClient( 838Services.AddSingleton<IDashboardClient>(dashboardClient ?? new TestDashboardClient());
Pages\LoginTests.cs (1)
66Services.AddSingleton<IDashboardClient>(new TestDashboardClient());
Pages\ResourcesTests.cs (5)
38var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel); 136var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 188var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 223var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, 320var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel);
Shared\ResourceSetupHelpers.cs (1)
121context.Services.AddSingleton<IDashboardClient>(dashboardClient ?? new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>));
Shared\StructuredLogsSetupHelpers.cs (1)
34context.Services.AddSingleton<IDashboardClient>(new TestDashboardClient());
28 references to TestDashboardClient
Aspire.Dashboard.Components.Tests (28)
Interactions\InteractionsProviderTests.cs (10)
35var dashboardClient = new TestDashboardClient(isEnabled: false); 59var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 84var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 128var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 178var dashboardClient = new TestDashboardClient(isEnabled: true, 235var dashboardClient = new TestDashboardClient(isEnabled: true, 293var dashboardClient = new TestDashboardClient(isEnabled: true, 363var dashboardClient = new TestDashboardClient(isEnabled: true, 440var dashboardClient = new TestDashboardClient(isEnabled: true, 485private void SetupInteractionProviderServices(TestDashboardClient? dashboardClient = null, TestDialogService? dialogService = null, TestMessageService? messageService = null)
Layout\MainLayoutTests.cs (1)
192Services.AddSingleton<IDashboardClient, TestDashboardClient>();
Pages\ConsoleLogsTests.cs (12)
51var dashboardClient = new TestDashboardClient( 102var dashboardClient = new TestDashboardClient( 187var dashboardClient = new TestDashboardClient( 293var dashboardClient = new TestDashboardClient( 341var dashboardClient = new TestDashboardClient( 390var dashboardClient = new TestDashboardClient( 440var dashboardClient = new TestDashboardClient( 497var dashboardClient = new TestDashboardClient( 557var dashboardClient = new TestDashboardClient( 622var dashboardClient = new TestDashboardClient( 680var dashboardClient = new TestDashboardClient( 793private void SetupConsoleLogsServices(TestDashboardClient? dashboardClient = null, TestTimeProvider? timeProvider = null)
Pages\ResourcesTests.cs (5)
38var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel); 136var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 188var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 223var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, 320var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel);