90 references to TestDashboardClient
Aspire.Dashboard.Components.Tests (90)
Controls\ApplicationNameTests.cs (1)
58Services.AddSingleton<IDashboardClient>(new TestDashboardClient(applicationName: "<marquee>An HTML title!</marquee>"));
Controls\ResourceDetailsTests.cs (1)
464Services.AddSingleton<IDashboardClient>(new TestDashboardClient(isEnabled: true));
Dialogs\InteractionsInputDialogTests.cs (9)
59DashboardClient = new TestDashboardClient(), 121DashboardClient = new TestDashboardClient(), 187DashboardClient = new TestDashboardClient(), 242DashboardClient = new TestDashboardClient(), 314DashboardClient = new TestDashboardClient(), 377DashboardClient = new TestDashboardClient(), 664DashboardClient = new TestDashboardClient(), 748DashboardClient = new TestDashboardClient(), 776DashboardClient = 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());
Layout\MainLayoutTests.cs (1)
1040var dashboardClient = new TestDashboardClient();
Layout\MobileNavMenuTests.cs (1)
109Services.AddSingleton<IDashboardClient>(new TestDashboardClient(isEnabled: true));
Layout\ResourceServiceConnectionProviderTests.cs (1)
18var dashboardClient = new TestDashboardClient(isEnabled: true);
Pages\ConsoleLogsTerminalTests.cs (10)
46var dashboardClient = new TestDashboardClient( 98var dashboardClient = new TestDashboardClient( 148var dashboardClient = new TestDashboardClient( 203var dashboardClient = new TestDashboardClient( 252var dashboardClient = new TestDashboardClient( 305var dashboardClient = new TestDashboardClient( 354var dashboardClient = new TestDashboardClient( 396var dashboardClient = new TestDashboardClient( 458var dashboardClient = new TestDashboardClient( 540var dashboardClient = new TestDashboardClient(
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( 1117Services.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 (22)
97var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 122var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 170var dashboardClient = new TestDashboardClient( 206var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel); 304var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 357var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 393var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: [resource], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 438var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 466var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 494var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 525var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 552var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, 649var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: () => channel); 781var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 808var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 837var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 867var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 899var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 981var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 1043var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 1087var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 1122var dashboardClient = new TestDashboardClient(
Shared\ResourceSetupHelpers.cs (1)
66context.Services.AddSingleton<IDashboardClient>(dashboardClient ?? new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>));
Shared\StructuredLogsSetupHelpers.cs (1)
23context.Services.AddSingleton<IDashboardClient>(new TestDashboardClient());