22 references to TestDashboardClient
Aspire.Dashboard.Tests (22)
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 (13)
34var client = new TestDashboardClient(isEnabled: true, 52var client = new TestDashboardClient(isEnabled: true, 70var client = new TestDashboardClient(isEnabled: true, 81var client = new TestDashboardClient(isEnabled: true, 96var client = new TestDashboardClient(isEnabled: true, 113var client = new TestDashboardClient(isEnabled: true, 133var executor = CreateExecutor(new TestDashboardClient(isEnabled: true), out _, out _); 142var client = new TestDashboardClient(isEnabled: true, 163var dashboardClient = new TestDashboardClient( 217var dashboardClient = new TestDashboardClient( 261var dashboardClient = new TestDashboardClient( 301var dashboardClient = new TestDashboardClient( 345var dashboardClient = new TestDashboardClient(
Model\ParameterInteractionStateTests.cs (1)
281DashboardClient = 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) =>