5 instantiations of TestDashboardClient
Aspire.Dashboard.Components.Tests (5)
Pages\ConsoleLogsTests.cs (1)
549Services.AddSingleton<IDashboardClient>(dashboardClient ?? new TestDashboardClient());
Pages\LoginTests.cs (1)
63Services.AddSingleton<IDashboardClient>(new TestDashboardClient());
Pages\ResourcesTests.cs (3)
36var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel); 134var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 186var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
12 references to TestDashboardClient
Aspire.Dashboard.Components.Tests (12)
Layout\MainLayoutTests.cs (1)
131Services.AddSingleton<IDashboardClient, TestDashboardClient>();
Pages\ConsoleLogsTests.cs (8)
47var dashboardClient = new TestDashboardClient( 131var dashboardClient = new TestDashboardClient( 178var dashboardClient = new TestDashboardClient( 235var dashboardClient = new TestDashboardClient( 295var dashboardClient = new TestDashboardClient( 360var dashboardClient = new TestDashboardClient( 418var dashboardClient = new TestDashboardClient( 506private void SetupConsoleLogsServices(TestDashboardClient? dashboardClient = null, TestTimeProvider? timeProvider = null)
Pages\ResourcesTests.cs (3)
36var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel); 134var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 186var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);