134 references to TestDashboardClient
Aspire.Dashboard.Components.Tests (134)
Controls\ApplicationNameTests.cs (1)
58Services.AddSingleton<IDashboardClient>(new TestDashboardClient(applicationName: "<marquee>An HTML title!</marquee>"));
Controls\ResourceActionsTests.cs (4)
35var client = new TestDashboardClient(isEnabled: enabled, initialResources: [resource], 76var client = new TestDashboardClient(isEnabled: true, initialResources: resources.Values.ToList(), 99var client = new TestDashboardClient(isEnabled: true, initialResources: [resource], 115var client = new TestDashboardClient(isEnabled: true, initialResources: [resource],
Controls\ResourceDetailsTests.cs (1)
464Services.AddSingleton<IDashboardClient>(new TestDashboardClient(isEnabled: true));
Dialogs\InteractionsInputDialogTests.cs (9)
54DashboardClient = new TestDashboardClient(), 116DashboardClient = new TestDashboardClient(), 182DashboardClient = new TestDashboardClient(), 237DashboardClient = new TestDashboardClient(), 309DashboardClient = new TestDashboardClient(), 372DashboardClient = new TestDashboardClient(), 659DashboardClient = new TestDashboardClient(), 720DashboardClient = new TestDashboardClient(), 748DashboardClient = new TestDashboardClient(),
Dialogs\ManageDataDialogTests.cs (3)
43var dashboardClient = new TestDashboardClient( 162var dashboardClient = new TestDashboardClient(isEnabled: false, initialResources: [], isReadOnly: dashboardClientIsReadOnly); 257var dashboardClient = new TestDashboardClient(
Interactions\InteractionsProviderTests.cs (16)
40var dashboardClient = new TestDashboardClient(isEnabled: false); 64var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 96var liveDashboardClient = new TestDashboardClient( 105var selectedDashboardClient = new TestDashboardClient( 143var dashboardClient = new TestDashboardClient( 206var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 258var dashboardClient = new TestDashboardClient(isEnabled: true, 317var dashboardClient = new TestDashboardClient(isEnabled: true, 378var dashboardClient = new TestDashboardClient(isEnabled: true, 447var dashboardClient = new TestDashboardClient( 487var dashboardClient = new TestDashboardClient(isEnabled: true, 566var dashboardClient = new TestDashboardClient(isEnabled: true, 622var dashboardClient = new TestDashboardClient(isEnabled: true, 681var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 737Services.AddSingleton<IDashboardClient>(selectedDashboardClient ?? new TestDashboardClient()); 738Services.AddKeyedSingleton<IDashboardClient>(DashboardClient.LiveAppHostServiceKey, dashboardClient ?? new TestDashboardClient());
Interactions\InteractionsProviderTests.Terminal.cs (2)
30var client = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => updates, 89var client = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => updates,
Layout\DesktopNavMenuTests.cs (1)
30Services.AddSingleton<IDashboardClient>(new TestDashboardClient(isEnabled: enabled));
Layout\MainLayoutResourceTerminalsTests.cs (3)
29var client = new TestDashboardClient(isEnabled: isEnabled, 56var client = new TestDashboardClient(isEnabled: true, 105var client = new TestDashboardClient(isEnabled: true, resourceChannelProvider: () => updates);
Layout\MainLayoutTerminalTests.cs (3)
31var client = new TestDashboardClient( 88var client = new TestDashboardClient( 173var client = new TestDashboardClient(
Layout\MainLayoutTests.cs (2)
1215SetupMainLayoutServices(dashboardClient: new TestDashboardClient(isEnabled: false)); 1253dashboardClient ??= new TestDashboardClient();
Layout\MobileNavMenuTests.cs (1)
135Services.AddSingleton<IDashboardClient>(new TestDashboardClient(isEnabled: true));
Layout\ResourceServiceConnectionProviderTests.cs (1)
18var dashboardClient = new TestDashboardClient(isEnabled: true);
Layout\ResourceTerminalsAvailabilityProviderTests.cs (2)
21var client = new TestDashboardClient(isEnabled: enabled, isReadOnly: readOnly); 32var client = new TestDashboardClient(isEnabled: true, whenConnected: connected.Task);
Layout\TerminalDockInitializationTests.cs (2)
26var client = new TestDashboardClient( 90var client = new TestDashboardClient(isEnabled: enabled, isReadOnly: readOnly);
Layout\TerminalDockTests.cs (1)
97var client = new TestDashboardClient(
Pages\ConsoleLogsTerminalTests.cs (1)
29var client = new TestDashboardClient(isEnabled: true, initialResources: [resource],
Pages\ConsoleLogsTests.cs (21)
44var dashboardClient = new TestDashboardClient( 95var dashboardClient = new TestDashboardClient( 182var dashboardClient = new TestDashboardClient( 271var dashboardClient = new TestDashboardClient( 323var dashboardClient = new TestDashboardClient( 372var liveClient = new TestDashboardClient( 381var currentResourceRepository = new TestDashboardClient( 411var dashboardClient = new TestDashboardClient( 433var dashboardClient = new TestDashboardClient( 474var dashboardClient = new TestDashboardClient( 500var dashboardClient = new TestDashboardClient( 549var dashboardClient = new TestDashboardClient( 599var dashboardClient = new TestDashboardClient( 665var dashboardClient = new TestDashboardClient( 702var dashboardClient = new TestDashboardClient( 757var dashboardClient = new TestDashboardClient( 797var dashboardClient = new TestDashboardClient( 869var dashboardClient = new TestDashboardClient( 907var dashboardClient = new TestDashboardClient( 965var dashboardClient = new TestDashboardClient( 1115Services.AddSingleton<IDashboardClient>(dashboardClient ?? new TestDashboardClient());
Pages\LoginTests.cs (1)
94Services.AddSingleton<IDashboardClient>(new TestDashboardClient());
Pages\MetricsTests.cs (1)
46Services.AddSingleton<IDashboardClient>(new TestDashboardClient(isReadOnly: dashboardClientIsReadOnly));
Pages\ResourcesTests.cs (23)
103var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 128var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 175var dashboardClient = new TestDashboardClient( 211var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel); 309var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 362var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 436var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel); 534var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: [resource], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 579var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 607var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 635var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 666var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 786var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, 883var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel); 1015var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 1042var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 1071var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 1101var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 1133var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 1215var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 1277var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 1321var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 1356var dashboardClient = new TestDashboardClient(
Pages\TerminalsTests.cs (8)
33var client = new TestDashboardClient(isEnabled: true, initialResources: resources, whenResourcesReady: ready.Task, 73var client = new TestDashboardClient(isEnabled: true, whenResourcesReady: ready.Task, 95var client = new TestDashboardClient(isEnabled: true, 131var client = new TestDashboardClient(isEnabled: true, whenConnected: connected.Task, 447var client = new TestDashboardClient(isEnabled: enabled, isReadOnly: readOnly, 481var client = new TestDashboardClient(isEnabled: true, initialResources: [first, last], resourceChannelProvider: () => updates); 575var client = new TestDashboardClient(isEnabled: true, 640=> new(isEnabled: true, initialResources: resources,
Pages\TerminalWindowTests.cs (24)
34var client = new TestDashboardClient(isEnabled: true, initialResources: resources, whenResourcesReady: ready.Task); 61var client = new TestDashboardClient(isEnabled: true, whenResourcesReady: ready.Task); 77var client = new TestDashboardClient(isEnabled: true, whenResourcesReady: ready.Task, 99var client = new TestDashboardClient(isEnabled: true, whenResourcesReady: ready.Task, 114var client = new TestDashboardClient(isEnabled: true, whenResourcesReady: ready.Task, 139var client = new TestDashboardClient(isEnabled: true, initialResources: 162var client = new TestDashboardClient(isEnabled: true, initialResources: 187var client = new TestDashboardClient(isEnabled: true, initialResources: [resource]); 205var client = new TestDashboardClient(isEnabled: true, initialResources: [resource]); 227var client = new TestDashboardClient(isEnabled: true, initialResources: resources); 255var client = new TestDashboardClient(isEnabled: true, initialResources: 277TerminalSetupHelpers.SetupTerminalComponents(this, new TestDashboardClient(isEnabled: true, 296var client = new TestDashboardClient(isEnabled: isEnabled, terminalChannelProvider: () => terminals, 322var client = new TestDashboardClient(isEnabled: true, initialResources: resources); 346TerminalSetupHelpers.SetupTerminalComponents(this, new TestDashboardClient(isEnabled: true, 373TerminalSetupHelpers.SetupTerminalComponents(this, new TestDashboardClient()); 405TerminalSetupHelpers.SetupTerminalComponents(this, new TestDashboardClient()); 422TerminalSetupHelpers.SetupTerminalComponents(this, new TestDashboardClient()); 443TerminalSetupHelpers.SetupTerminalComponents(this, new TestDashboardClient(terminalChannelProvider: () => updates), pathBase); 458TerminalSetupHelpers.SetupTerminalComponents(this, new TestDashboardClient(isEnabled: true, 482var client = new TestDashboardClient(terminalChannelProvider: () => updates); 508var client = new TestDashboardClient(terminalChannelProvider: () => 545var client = new TestDashboardClient(terminalChannelProvider: () => updates) 581var client = new TestDashboardClient(terminalChannelProvider: () => updates);
Shared\ResourceSetupHelpers.cs (1)
72context.Services.AddSingleton<IDashboardClient>(dashboardClient ?? new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>));
Shared\StructuredLogsSetupHelpers.cs (1)
23context.Services.AddSingleton<IDashboardClient>(new TestDashboardClient());
Shared\TerminalSetupHelpers.cs (1)
28=> new(isEnabled: true,