161 references to CreateExecutionContext
Aspire.Cli.Tests (161)
Backchannel\ExtensionBackchannelTests.cs (5)
24workspace.CreateExecutionContext(), 36var backchannel = CreateBackchannel("not-a-valid-endpoint", workspace.CreateExecutionContext()); 51workspace.CreateExecutionContext(), 88workspace.CreateExecutionContext(), 129workspace.CreateExecutionContext(),
Caching\AppHostInfoDiskCacheTests.cs (2)
19var ctx = workspace.CreateExecutionContext(); 25var ctx = workspace.CreateExecutionContext();
Caching\DiskCacheTests.cs (1)
20var ctx = workspace.CreateExecutionContext();
Commands\AddCommandTests.cs (5)
237var prompter = new AddCommandPrompter(interaction, workspace.CreateExecutionContext()); 423var prompter = new AddCommandPrompter(interaction, workspace.CreateExecutionContext()); 3596var executionContext = workspace.CreateExecutionContext(); 3844var prompter = new AddCommandPrompter(interactionService, workspace.CreateExecutionContext()); 3899var prompter = new AddCommandPrompter(interactionService, workspace.CreateExecutionContext());
Commands\BaseCommandTests.cs (3)
276var ctx = workspace.CreateExecutionContext(); 328var context = workspace.CreateExecutionContext(logFilePath: cliLogPath); 364options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(logFilePath: cliLogPath);
Commands\ConfigSourceCommandTests.cs (4)
287services.AddSingleton(workspace.CreateExecutionContext(identityChannel: "default")); 918var initial = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: new TestConfigSourceRepository 1237services.AddSingleton(workspace.CreateExecutionContext(identityChannel: "default")); 1501options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(identityChannel: "stable");
Commands\DashboardRunCommandTests.cs (1)
658var executionContext = workspace.CreateExecutionContext(logFilePath: logFilePath);
Commands\InitCommandTests.cs (1)
1128options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(identityVersion: version);
Commands\NewCommandChannelResolutionTests.cs (2)
71options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(identityChannel: PackageChannelNames.Stable); 749return workspace.CreateExecutionContext(
Commands\NewCommandLocalTemplateTests.cs (8)
728var context = workspace.CreateExecutionContext( 765var context = workspace.CreateExecutionContext( 804var context = workspace.CreateExecutionContext( 936var context = workspace.CreateExecutionContext( 986services.AddSingleton(workspace.CreateExecutionContext(identityChannel: "daily", identityVersion: "17.0.0-preview.1")); 1035services.AddSingleton(workspace.CreateExecutionContext(identityChannel: "pr-missing")); 1064services.AddSingleton(workspace.CreateExecutionContext(identityChannel: "daily", identityVersion: "17.0.0-preview.1")); 1143services.AddSingleton(workspace.CreateExecutionContext(identityChannel: "pr-missing"));
Commands\NewCommandLocalTemplateTests.HostConfiguration.cs (5)
247services.AddSingleton(workspace.CreateExecutionContext(identityChannel: "stable", identityVersion: "17.0.0")); 275services.AddSingleton(workspace.CreateExecutionContext(identityChannel: "stable", identityVersion: "17.0.0")); 317services.AddSingleton(workspace.CreateExecutionContext(identityChannel: "pr-missing", identityVersion: "17.0.0-pr.12345")); 362services.AddSingleton(workspace.CreateExecutionContext(identityChannel: "daily", identityVersion: "17.0.0-preview.1")); 427services.AddSingleton(workspace.CreateExecutionContext(identityChannel: "stable", identityVersion: identityVersion));
Commands\NewCommandLocalTemplateTests.NuGetValues.cs (4)
52services.AddSingleton(workspace.CreateExecutionContext(identityChannel: "unavailable", identityVersion: "13.6.3")); 118services.AddSingleton(workspace.CreateExecutionContext(identityChannel: "daily", identityVersion: "13.6.3")); 360services.AddSingleton(workspace.CreateExecutionContext(identityVersion: "13.6.3")); 499services.AddSingleton(workspace.CreateExecutionContext(identityChannel: "stable", identityVersion: "13.6.3"));
Commands\NewCommandTemplateConfigPersistenceTests.cs (1)
548return workspace.CreateExecutionContext(identityChannel: identityChannel);
Commands\NewCommandTests.cs (3)
124options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(identityChannel: PackageChannelNames.Staging); 168options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(identityChannel: PackageChannelNames.Staging); 739options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(identityChannel: PackageChannelNames.Stable);
Commands\RootCommandTests.cs (1)
156options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(
Commands\RunCommandTests.cs (8)
3137var executionContext = workspace.CreateExecutionContext(logFilePath: logFilePath); 3910var executionContext = workspace.CreateExecutionContext(); 3958var executionContext = workspace.CreateExecutionContext(); 4002var executionContext = workspace.CreateExecutionContext(); 4050var executionContext = workspace.CreateExecutionContext(); 4093var executionContext = workspace.CreateExecutionContext(); 4137var executionContext = workspace.CreateExecutionContext(); 4181var executionContext = workspace.CreateExecutionContext();
Commands\Sdk\SdkExportCommandTests.cs (1)
403options.CliExecutionContextFactory = _ => testWorkspace.CreateExecutionContext(
Commands\UpdateCommandTests.cs (6)
52options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(identityChannel: PackageChannelNames.Staging); 2648options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(identityChannel: PackageChannelNames.Staging); 2722options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(identityChannel: PackageChannelNames.Stable); 3115options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(identityChannel: identityChannel); 3327options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(identityChannel: PackageChannelNames.Staging); 3542options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(identityChannel: identityChannel);
Configuration\ConfigSourceServiceGitTests.cs (4)
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(), 688workspace.CreateExecutionContext(aspireHomeDirectory: workspace.CreateDirectory("h")), git: client);
Configuration\ConfigSourceServiceTests.cs (64)
67using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 103using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 133using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 181using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, environment: environment); 458var context = workspace.CreateExecutionContext(); 517using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 526using var stoppedService = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 556using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 573using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 599using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 615using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 672using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 817var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, detector: detector, 838var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 862var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 874var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 908using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 929using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 961using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 983using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), interaction: interaction, 1025using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 1058var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 1081var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 1096using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 1113var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 1130using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1152using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1180using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 1237using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 1258using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 1277using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), environment: environment); 1301var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1325using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1346using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1368var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1396using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1426using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1457using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1484using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1507var context = workspace.CreateExecutionContext(); 1528var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 1553var context = workspace.CreateExecutionContext(); 1575var context = workspace.CreateExecutionContext(); 1626var context = workspace.CreateExecutionContext(); 1655var context = workspace.CreateExecutionContext(); 1687var context = workspace.CreateExecutionContext(); 1742using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 1763var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1793var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 1810var context = workspace.CreateExecutionContext(); 1827var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1860var context = workspace.CreateExecutionContext(); 1914var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1931var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1954var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1994using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 2027using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, environment: environment); 2048var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 2069var context = workspace.CreateExecutionContext(); 2092using var next = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, clock: clock, interaction: interaction); 2134var context = workspace.CreateExecutionContext(); 2155var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 2176using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, detector: detector, interaction: interaction); 2205var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(aspireHomeDirectory: home));
Configuration\ConfigurationServiceTests.cs (6)
33var executionContext = workspace.CreateExecutionContext(); 100using var configSources = TestConfigSourceServices.Create(workspace.CreateExecutionContext()); 101var store = new TemplateSourceStore(service, workspace.CreateExecutionContext(), NullLogger<TemplateSourceStore>.Instance, configSources); 145var cache = workspace.CreateExecutionContext().CacheDirectory; 169workspace.CreateExecutionContext(), new FileInfo(path), NullLogger.Instance, CancellationToken.None)) 732var reader = new ConfigurationService(configuration, workspace.CreateExecutionContext(),
DotNet\DotNetCliRunnerTests.cs (1)
2821var executionContext = workspace.CreateExecutionContext();
Git\GitRepositoryTests.cs (2)
39var repo = new GitRepository(workspace.CreateExecutionContext(), new TestEnvironment(), logger, profilingTelemetry); 249return new GitRepository(workspace.CreateExecutionContext(), new TestEnvironment(), loggerFactory.CreateLogger<GitRepository>(), profilingTelemetry);
Interaction\ConsoleInteractionServiceTests.cs (3)
240var context = workspace.CreateExecutionContext(); 282var context = workspace.CreateExecutionContext(); 317var context = workspace.CreateExecutionContext();
Interaction\ExtensionInteractionServiceTests.cs (7)
40workspace.CreateExecutionContext(), 92var executionContext = workspace.CreateExecutionContext(); 117var executionContext = workspace.CreateExecutionContext(logFilePath: logFilePath); 369var executionContext = workspace.CreateExecutionContext(); 440workspace.CreateExecutionContext(), TestHelpers.CreateInteractiveHostEnvironment(), 613var executionContext = workspace.CreateExecutionContext(logFilePath: logFilePath); 648workspace.CreateExecutionContext(),
Migrations\TypeScriptAppHostMigrationTests.cs (1)
30workspace.CreateExecutionContext(),
Packaging\PackagingServiceTests.cs (1)
882var executionContext = workspace.CreateExecutionContext(identityChannel: PackageChannelNames.Stable);
Projects\PrebuiltAppHostServerTests.cs (1)
1453var executionContext = TestExecutionContextHelper.CreateExecutionContext(
Projects\ProjectUpdaterNuGetConfigurationTests.cs (1)
861}).AddSingleton(workspace.CreateExecutionContext(nugetServiceIndexOverride: overrideSource))
Scaffolding\ChannelReseedTests.cs (2)
90executionContext: workspace.CreateExecutionContext(), 129executionContext: workspace.CreateExecutionContext(),
Scaffolding\DefaultHostingPackagesTests.cs (1)
203executionContext: workspace.CreateExecutionContext(identityVersion: IdentitySdkVersion),
Templating\TemplateNuGetConfigServiceTests.cs (3)
52var service = CreateService(executionContext: workspace.CreateExecutionContext()); 98var service = CreateService(executionContext: workspace.CreateExecutionContext()); 141var service = CreateService(executionContext: workspace.CreateExecutionContext());
Utils\LegacySettingsFileCheckTests.cs (3)
46var executionContext = workspace.CreateExecutionContext(); 67var executionContext = workspace.CreateExecutionContext(); 158var executionContext = workspace.CreateExecutionContext();