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