13 references to TestDashboardClient
Aspire.Dashboard.Tests (13)
Model\DashboardClientTests.cs (2)
62var dashboardClient = new TestDashboardClient(attachTerminal: (_, _) => Task.FromResult<Stream>(stream)); 181var dashboardClient = new TestDashboardClient(attachTerminal: (_, _) => Task.FromResult<Stream>(stream));
Model\DashboardCommandExecutorTests.cs (5)
39var dashboardClient = new TestDashboardClient( 93var dashboardClient = new TestDashboardClient( 137var dashboardClient = new TestDashboardClient( 177var dashboardClient = new TestDashboardClient( 221var dashboardClient = new TestDashboardClient(
Model\ResourceMenuBuilderTests.cs (3)
46dashboardClient ??= new TestDashboardClient(); 180var menuBuilder = CreateResourceMenuBuilder(repositoryContext.Repository, new TestDashboardClient(isEnabled: true)); 393new TestDashboardClient(isReadOnly: true));
Model\TelemetryExportServiceTests.cs (1)
1263var dashboardClient = new TestDashboardClient(isEnabled: isDashboardClientEnabled);
Shared\TerminalTestHost.cs (1)
46builder.Services.AddSingleton<IDashboardClient>(new TestDashboardClient(attachTerminal: AttachTerminalAsync));
Terminal\TerminalWebSocketProxyEndpointTests.cs (1)
178services.AddSingleton<IDashboardClient>(new TestDashboardClient(attachTerminal: async (terminalId, cancellationToken) =>