144 references to TestConfigSourceServices
Aspire.Cli.Tests (144)
Backchannel\AppHostConnectionResolverTests.cs (15)
27await TestConfigSourceServices.SaveBindingAsync(new ConfigSource 37using var sources = TestConfigSourceServices.Create(executionContext, git: git, interaction: interaction); 85TestConfigSourceServices.Create(executionContext)); 119TestConfigSourceServices.Create(executionContext)); 167TestConfigSourceServices.Create(executionContext)); 205TestConfigSourceServices.Create(executionContext)); 240TestConfigSourceServices.Create(executionContext)); 271TestConfigSourceServices.Create(executionContext)); 303TestConfigSourceServices.Create(executionContext)); 355TestConfigSourceServices.Create(executionContext)); 407TestConfigSourceServices.Create(executionContext)); 447TestConfigSourceServices.Create(executionContext)); 485TestConfigSourceServices.Create(executionContext)); 522TestConfigSourceServices.Create(executionContext)); 559TestConfigSourceServices.Create(executionContext));
Commands\AgentInitCommandTests.cs (1)
264await TestConfigSourceServices.SaveBindingAsync(
Commands\ConfigSourceCommandTests.cs (25)
42await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 97await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 143await TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: acquired) 188await TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: acquired) 231await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 262await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 303await TestConfigSourceServices.SaveBindingAsync(new() 403await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 454await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 464await TestConfigSourceServices.SaveBindingAsync(s_source, globalFile.Directory, CancellationToken.None); 488await TestConfigSourceServices.SaveBindingAsync( 494await TestConfigSourceServices.SaveBindingAsync(s_source, project, CancellationToken.None); 541await TestConfigSourceServices.SaveBindingAsync(s_source, globalFile.Directory, CancellationToken.None); 567await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 573await TestConfigSourceServices.SaveBindingAsync(selectedSource, selected, CancellationToken.None); 614var initial = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: new TestConfigSourceRepository 653await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 658await TestConfigSourceServices.SaveBindingAsync(selectedSource, selected, CancellationToken.None); 686await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 706await TestConfigSourceServices.SaveBindingAsync(selectedSource, projectDirectory, CancellationToken.None); 754await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 774await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 793await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 899await TestConfigSourceServices.SaveBindingAsync(new ConfigSource 922await TestConfigSourceServices.SaveBindingAsync(s_source, configDirectory, CancellationToken.None);
Configuration\ConfigSourceServiceGitTests.cs (5)
170await TestConfigSourceServices.SaveBindingAsync(new ConfigSource 178using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, clock: clock, interaction: interaction); 410using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 438using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 691using var service = TestConfigSourceServices.Create(
Configuration\ConfigSourceServiceTests.cs (97)
35await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, global, CancellationToken.None); 46await TestConfigSourceServices.SaveBindingAsync(new ConfigSource 67using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, globalSettingsFile: globalFile); 100await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 108using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction, globalSettingsFile: globalFile); 145await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, project, CancellationToken.None); 146await TestConfigSourceServices.SaveBindingAsync(globalSource, global, CancellationToken.None); 147await TestConfigSourceServices.SaveBindingAsync(ignoredSource, parent, CancellationToken.None); 148await TestConfigSourceServices.SaveBindingAsync(ignoredSource, workspace.WorkspaceRoot, CancellationToken.None); 149await TestConfigSourceServices.SaveBindingAsync(ignoredSource, sibling, CancellationToken.None); 195using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction, globalSettingsFile: globalFile); 254await TestConfigSourceServices.SaveBindingAsync(new ConfigSource 294using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction, globalSettingsFile: globalFile); 331await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, project, CancellationToken.None); 335using (var first = TestConfigSourceServices.Create(context, git: git, clock: clock, globalSettingsFile: globalFile)) 339await TestConfigSourceServices.SaveBindingAsync(new ConfigSource 348using (var service = TestConfigSourceServices.Create(context, git: git, clock: clock, interaction: interaction, globalSettingsFile: globalFile)) 359using var next = TestConfigSourceServices.Create(context, git: git, clock: clock, interaction: interaction, globalSettingsFile: globalFile); 372await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 392using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 401using var stoppedService = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 417await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 431using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 446await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 448using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 470await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 474using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 490using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 547using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 690var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, detector: detector, 711var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 735var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 747var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 760var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 782var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 797var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 820var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 833await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 843var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 862await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 879using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 901await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 913using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 925await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 941using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 962await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 966await TestConfigSourceServices.Create(context, git: git, clock: clock).CheckProjectAsync(workspace.WorkspaceRoot, false, CancellationToken.None); 969await TestConfigSourceServices.Create(context, git: git, clock: clock).CheckProjectAsync(workspace.WorkspaceRoot, false, CancellationToken.None); 979await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 984var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 1008await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1011await TestConfigSourceServices.Create(context, git: git).CheckProjectAsync(workspace.WorkspaceRoot, false, CancellationToken.None); 1014var service = TestConfigSourceServices.Create(context, git: git, interaction: interaction); 1028await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1032using var first = TestConfigSourceServices.Create(context, git: git, clock: clock); 1041await TestConfigSourceServices.SaveBindingAsync(new ConfigSource 1053using var service = TestConfigSourceServices.Create(context, git: git, clock: clock, interaction: interaction); 1076await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1081using var first = TestConfigSourceServices.Create(context, git: git); 1083await TestConfigSourceServices.SaveBindingAsync( 1090using var service = TestConfigSourceServices.Create(context, git: git, interaction: interaction); 1105await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1109var first = TestConfigSourceServices.Create(context, git: git, clock: clock); 1120var next = TestConfigSourceServices.Create(context, git: git, clock: clock, interaction: interaction); 1140using var first = TestConfigSourceServices.Create(context, clock: clock); 1150using var service = TestConfigSourceServices.Create(context, git: git, clock: clock, interaction: interaction); 1164var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1180await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1181await TestConfigSourceServices.SaveBindingAsync(new() 1189var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 1205await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1210TestConfigSourceServices.Create(context, git: git).CheckProjectAsync(workspace.WorkspaceRoot, false, CancellationToken.None))).DefaultTimeout(); 1223var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1271var service = TestConfigSourceServices.Create(context, git: git); 1294await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1306await TestConfigSourceServices.SaveBindingAsync(changed, workspace.WorkspaceRoot, token); 1310var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1323await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1327var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1346await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1350var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1380await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1390using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 1409await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1423using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, environment: environment); 1440await TestConfigSourceServices.SaveBindingAsync(invalid, workspace.WorkspaceRoot, CancellationToken.None); 1444var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 1468using var first = TestConfigSourceServices.Create(context, git: git, clock: clock); 1481using var next = TestConfigSourceServices.Create(context, git: git, clock: clock, interaction: interaction); 1503await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1504await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, other, CancellationToken.None); 1510await TestConfigSourceServices.Create(context, git: git).CheckProjectAsync(workspace.WorkspaceRoot, true, CancellationToken.None); 1513var service = TestConfigSourceServices.Create(context, git: git, interaction: interaction); 1527await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 1530var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 1551using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, detector: detector, interaction: interaction); 1580var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(aspireHomeDirectory: home));
Projects\ProjectLocatorTests.cs (1)
4283TestConfigSourceServices.Create(executionContext));