22 instantiations of TestDashboardClient
Aspire.Dashboard.Tests (22)
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 (13)
34
var client = new
TestDashboardClient
(isEnabled: true,
52
var client = new
TestDashboardClient
(isEnabled: true,
70
var client = new
TestDashboardClient
(isEnabled: true,
81
var client = new
TestDashboardClient
(isEnabled: true,
96
var client = new
TestDashboardClient
(isEnabled: true,
113
var client = new
TestDashboardClient
(isEnabled: true,
133
var executor = CreateExecutor(new
TestDashboardClient
(isEnabled: true), out _, out _);
142
var client = new
TestDashboardClient
(isEnabled: true,
163
var dashboardClient = new
TestDashboardClient
(
217
var dashboardClient = new
TestDashboardClient
(
261
var dashboardClient = new
TestDashboardClient
(
301
var dashboardClient = new
TestDashboardClient
(
345
var dashboardClient = new
TestDashboardClient
(
Model\ParameterInteractionStateTests.cs (1)
281
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) =>
17 references to TestDashboardClient
Aspire.Dashboard.Tests (17)
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 (14)
34
var
client = new TestDashboardClient(isEnabled: true,
52
var
client = new TestDashboardClient(isEnabled: true,
70
var
client = new TestDashboardClient(isEnabled: true,
81
var
client = new TestDashboardClient(isEnabled: true,
96
var
client = new TestDashboardClient(isEnabled: true,
113
var
client = new TestDashboardClient(isEnabled: true,
142
var
client = new TestDashboardClient(isEnabled: true,
163
var
dashboardClient = new TestDashboardClient(
217
var
dashboardClient = new TestDashboardClient(
261
var
dashboardClient = new TestDashboardClient(
301
var
dashboardClient = new TestDashboardClient(
345
var
dashboardClient = new TestDashboardClient(
372
private static DashboardCommandExecutor CreateExecutor(
TestDashboardClient
dashboardClient, out Aspire.Dashboard.Model.INotificationService notificationService, out TestNotificationService toastService)
380
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);