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