143 references to TestDashboardClient
Aspire.Dashboard.Components.Tests (143)
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));
Controls\TerminalDisconnectedBannerTests.cs (5)
32var client = new TestDashboardClient(isEnabled: true, initialResources: [initial], resourceChannelProvider: () => updates); 66var client = new TestDashboardClient(isEnabled: true, initialResources: [resource], 108var client = new TestDashboardClient(isEnabled: true, initialResources: [resource], 146var client = new TestDashboardClient(isEnabled: true, isReadOnly: clientReadOnly, initialResources: [resource], 162var client = new TestDashboardClient(isEnabled: true, initialResources: [resource], resourceChannelProvider: () => updates);
Controls\TerminalViewTests.cs (1)
599var client = new TestDashboardClient(isEnabled: true, initialResources: [resource],
Dialogs\InteractionsInputDialogTests.cs (10)
54DashboardClient = new TestDashboardClient(), 121DashboardClient = new TestDashboardClient(), 160DashboardClient = new TestDashboardClient(), 226DashboardClient = new TestDashboardClient(), 281DashboardClient = new TestDashboardClient(), 353DashboardClient = new TestDashboardClient(), 416DashboardClient = new TestDashboardClient(), 703DashboardClient = new TestDashboardClient(), 764DashboardClient = new TestDashboardClient(), 792DashboardClient = 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)
39var dashboardClient = new TestDashboardClient(isEnabled: false); 63var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 95var liveDashboardClient = new TestDashboardClient( 104var selectedDashboardClient = new TestDashboardClient( 142var dashboardClient = new TestDashboardClient( 205var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 257var dashboardClient = new TestDashboardClient(isEnabled: true, 316var dashboardClient = new TestDashboardClient(isEnabled: true, 377var dashboardClient = new TestDashboardClient(isEnabled: true, 446var dashboardClient = new TestDashboardClient( 486var dashboardClient = new TestDashboardClient(isEnabled: true, 565var dashboardClient = new TestDashboardClient(isEnabled: true, 621var dashboardClient = new TestDashboardClient(isEnabled: true, 680var dashboardClient = new TestDashboardClient(isEnabled: true, interactionChannelProvider: () => interactionsChannel); 736Services.AddSingleton<IDashboardClient>(selectedDashboardClient ?? new TestDashboardClient()); 737Services.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)
1228SetupMainLayoutServices(dashboardClient: new TestDashboardClient(isEnabled: false)); 1266dashboardClient ??= 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(
Model\DashboardCommandExecutorTests.cs (1)
69var dashboardClient = 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)
318Services.AddSingleton<IDashboardClient>(new TestDashboardClient(isReadOnly: dashboardClientIsReadOnly));
Pages\ResourcesTests.cs (24)
52var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: 155var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 180var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 227var dashboardClient = new TestDashboardClient( 263var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel); 361var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 414var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 558var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel); 657var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: [resource], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 703var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 731var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 759var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 790var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 910var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, 1007var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel); 1139var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 1166var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 1195var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 1225var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 1257var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 1339var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 1401var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 1445var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 1480var dashboardClient = new TestDashboardClient(
Pages\TerminalsTests.cs (8)
51var client = new TestDashboardClient(isEnabled: true, initialResources: resources, whenResourcesReady: ready.Task, 91var client = new TestDashboardClient(isEnabled: true, whenResourcesReady: ready.Task, 113var client = new TestDashboardClient(isEnabled: true, 149var client = new TestDashboardClient(isEnabled: true, whenConnected: connected.Task, 465var client = new TestDashboardClient(isEnabled: enabled, isReadOnly: readOnly, 499var client = new TestDashboardClient(isEnabled: true, initialResources: [first, last], resourceChannelProvider: () => updates); 593var client = new TestDashboardClient(isEnabled: true, 658=> 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,