172 references to TestConfigSourceServices
Aspire.Cli.Tests (172)
Backchannel\AppHostConnectionResolverTests.cs (16)
30await TestConfigSourceServices.SaveBindingAsync(new ConfigSource 40using var sources = TestConfigSourceServices.Create(executionContext, git: git, interaction: interaction); 88TestConfigSourceServices.Create(executionContext)); 122TestConfigSourceServices.Create(executionContext)); 146using var sources = TestConfigSourceServices.Create(executionContext); 206TestConfigSourceServices.Create(executionContext)); 244TestConfigSourceServices.Create(executionContext)); 279TestConfigSourceServices.Create(executionContext)); 310TestConfigSourceServices.Create(executionContext)); 342TestConfigSourceServices.Create(executionContext)); 394TestConfigSourceServices.Create(executionContext)); 446TestConfigSourceServices.Create(executionContext)); 486TestConfigSourceServices.Create(executionContext)); 524TestConfigSourceServices.Create(executionContext)); 561TestConfigSourceServices.Create(executionContext)); 598TestConfigSourceServices.Create(executionContext));
Commands\AgentInitCommandTests.cs (1)
381await TestConfigSourceServices.SaveBindingAsync(
Commands\ConfigSourceCommandTests.cs (30)
50await TestConfigSourceServices.SaveBindingAsync(source, workspace.WorkspaceRoot, TestContext.Current.CancellationToken); 107await TestConfigSourceServices.SaveBindingAsync(source, workspace.WorkspaceRoot, TestContext.Current.CancellationToken); 139await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 194await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 249using var sourceService = TestConfigSourceServices.Create(context.ExecutionContext, git: acquired); 368await TestConfigSourceServices.SaveBindingAsync(source, workspace.WorkspaceRoot, CancellationToken.None); 407await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 448await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 491await TestConfigSourceServices.SaveBindingAsync(new() 592await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 643await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 653await TestConfigSourceServices.SaveBindingAsync(s_source, globalFile.Directory, CancellationToken.None); 677await TestConfigSourceServices.SaveBindingAsync( 683await TestConfigSourceServices.SaveBindingAsync(s_source, project, CancellationToken.None); 703await TestConfigSourceServices.SaveBindingAsync(new ConfigSource { OptOut = true }, workspace.WorkspaceRoot, CancellationToken.None); 741await TestConfigSourceServices.SaveBindingAsync(s_source, globalFile.Directory, CancellationToken.None); 938await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 944await TestConfigSourceServices.SaveBindingAsync(selectedSource, selected, CancellationToken.None); 985var initial = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: new TestConfigSourceRepository 1024await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 1029await TestConfigSourceServices.SaveBindingAsync(selectedSource, selected, CancellationToken.None); 1057await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 1077await TestConfigSourceServices.SaveBindingAsync(selectedSource, projectDirectory, CancellationToken.None); 1125await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 1145await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 1164await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 1275await TestConfigSourceServices.SaveBindingAsync(new ConfigSource 1298await TestConfigSourceServices.SaveBindingAsync(s_source, configDirectory, CancellationToken.None); 1464await TestConfigSourceServices.SaveBindingAsync(microsoftDefault 1546await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, TestContext.Current.CancellationToken);
Configuration\ConfigSourceServiceGitTests.cs (5)
175await TestConfigSourceServices.SaveBindingAsync(new ConfigSource 183using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, clock: clock, interaction: interaction); 415using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 443using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 687using var service = TestConfigSourceServices.Create(
Configuration\ConfigSourceServiceTests.cs (115)
67using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 103using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 139using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 190using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, environment: environment); 219await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, global, CancellationToken.None); 233await TestConfigSourceServices.SaveBindingAsync(new ConfigSource 307await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, project, CancellationToken.None); 308await TestConfigSourceServices.SaveBindingAsync(globalSource, global, CancellationToken.None); 314await TestConfigSourceServices.SaveBindingAsync(ignoredSource, parent, CancellationToken.None); 315await TestConfigSourceServices.SaveBindingAsync(ignoredSource, workspace.WorkspaceRoot, CancellationToken.None); 316await TestConfigSourceServices.SaveBindingAsync(ignoredSource, sibling, CancellationToken.None); 393await TestConfigSourceServices.SaveBindingAsync(new ConfigSource 402await TestConfigSourceServices.SaveBindingAsync(new ConfigSource 467await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, project, CancellationToken.None); 471using (var first = TestConfigSourceServices.Create(context, git: git, clock: clock)) 475await TestConfigSourceServices.SaveBindingAsync(new ConfigSource 484using (var service = TestConfigSourceServices.Create(context, git: git, clock: clock, interaction: interaction)) 495using var next = TestConfigSourceServices.Create(context, git: git, clock: clock, interaction: interaction); 508await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 528using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 537using var stoppedService = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 553await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 567using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 582await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 584using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 606await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 610using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 626using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 683using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 828var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, detector: detector, 849var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 873var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 885var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 919using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 940using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 972using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 994using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), interaction: interaction, 1036using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 1069var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 1092var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 1107using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 1124var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 1141using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1163using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1191using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 1225await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, global, CancellationToken.None); 1248using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 1269using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 1288using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), environment: environment); 1312var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1336using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1357using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1368await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1379var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1397await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1407using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1420await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1437using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1457await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1468using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1479await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1495using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1517await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1521await TestConfigSourceServices.Create(context, git: git, clock: clock).CheckProjectAsync(workspace.WorkspaceRoot, false, CancellationToken.None); 1524await TestConfigSourceServices.Create(context, git: git, clock: clock).CheckProjectAsync(workspace.WorkspaceRoot, false, CancellationToken.None); 1534await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1539var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 1563await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1566await TestConfigSourceServices.Create(context, git: git).CheckProjectAsync(workspace.WorkspaceRoot, false, CancellationToken.None); 1569var service = TestConfigSourceServices.Create(context, git: git, interaction: interaction); 1585await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1589using var first = TestConfigSourceServices.Create(context, git: git, clock: clock); 1601await TestConfigSourceServices.SaveBindingAsync(new ConfigSource 1613using var service = TestConfigSourceServices.Create(context, git: git, clock: clock, interaction: interaction); 1636await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1641using var first = TestConfigSourceServices.Create(context, git: git); 1643await TestConfigSourceServices.SaveBindingAsync( 1650using var service = TestConfigSourceServices.Create(context, git: git, interaction: interaction); 1665await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1669var first = TestConfigSourceServices.Create(context, git: git, clock: clock); 1680var next = TestConfigSourceServices.Create(context, git: git, clock: clock, interaction: interaction); 1700using var first = TestConfigSourceServices.Create(context, clock: clock); 1710using var service = TestConfigSourceServices.Create(context, git: git, clock: clock, interaction: interaction); 1753using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 1774var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1795await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1796await TestConfigSourceServices.SaveBindingAsync(new() 1804var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 1820await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1825TestConfigSourceServices.Create(context, git: git).CheckProjectAsync(workspace.WorkspaceRoot, false, CancellationToken.None))).DefaultTimeout(); 1838var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1886var service = TestConfigSourceServices.Create(context, git: git); 1909await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1921await TestConfigSourceServices.SaveBindingAsync(changed, workspace.WorkspaceRoot, token); 1925var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1938await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1942var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1961await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 1965var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1995await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 2005using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 2024await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 2038using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, environment: environment); 2055await TestConfigSourceServices.SaveBindingAsync(invalid, workspace.WorkspaceRoot, CancellationToken.None); 2059var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 2089using var first = TestConfigSourceServices.Create(context, git: git, clock: clock); 2108using var next = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, clock: clock, interaction: interaction); 2150await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, workspace.WorkspaceRoot, CancellationToken.None); 2151await TestConfigSourceServices.SaveBindingAsync(s_appliedSource, other, CancellationToken.None); 2157await TestConfigSourceServices.Create(context, git: git).CheckProjectAsync(workspace.WorkspaceRoot, true, CancellationToken.None); 2160var service = TestConfigSourceServices.Create(context, git: git, interaction: interaction); 2174await TestConfigSourceServices.SaveBindingAsync(s_source, workspace.WorkspaceRoot, CancellationToken.None); 2177var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 2198using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, detector: detector, interaction: interaction); 2227var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(aspireHomeDirectory: home));
Configuration\ConfigurationServiceTests.cs (1)
100using var configSources = TestConfigSourceServices.Create(workspace.CreateExecutionContext());
Interaction\ConsoleInteractionServiceTests.cs (3)
243using var service = TestConfigSourceServices.Create(context, interaction: interaction, 284using var service = TestConfigSourceServices.Create(context, interaction: interaction, interactive: interactive, 319using var service = TestConfigSourceServices.Create(context, interaction: interaction,
Projects\ProjectLocatorTests.cs (1)
4316TestConfigSourceServices.Create(executionContext));