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