175 references to CreateExecutionContext
Aspire.Cli.Tests (175)
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)
388services.AddSingleton(workspace.CreateExecutionContext(identityChannel: "default")); 1085var initial = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: new TestConfigSourceRepository 1404services.AddSingleton(workspace.CreateExecutionContext(identityChannel: "default")); 1675options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(identityChannel: "stable");
Commands\DashboardRunCommandTests.cs (1)
658var executionContext = workspace.CreateExecutionContext(logFilePath: logFilePath);
Commands\InitCommandTests.cs (2)
256options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(identityVersion: "17.0.0"); 1155options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(identityVersion: version);
Commands\NewCommandChannelResolutionTests.cs (2)
71options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(identityChannel: PackageChannelNames.Stable); 749return workspace.CreateExecutionContext(
Commands\NewCommandLocalTemplateTests.cs (8)
729var context = workspace.CreateExecutionContext( 766var context = workspace.CreateExecutionContext( 805var context = workspace.CreateExecutionContext( 937var context = workspace.CreateExecutionContext( 987services.AddSingleton(workspace.CreateExecutionContext(identityChannel: "daily", identityVersion: "17.0.0-preview.1")); 1036services.AddSingleton(workspace.CreateExecutionContext(identityChannel: "pr-missing")); 1065services.AddSingleton(workspace.CreateExecutionContext(identityChannel: "daily", identityVersion: "17.0.0-preview.1")); 1144services.AddSingleton(workspace.CreateExecutionContext(identityChannel: "pr-missing"));
Commands\NewCommandLocalTemplateTests.HostConfiguration.cs (6)
252services.AddSingleton(workspace.CreateExecutionContext(identityChannel: "stable", identityVersion: "17.0.0")); 280services.AddSingleton(workspace.CreateExecutionContext(identityChannel: "stable", identityVersion: "17.0.0")); 322services.AddSingleton(workspace.CreateExecutionContext(identityChannel: "pr-missing", identityVersion: "17.0.0-pr.12345")); 367services.AddSingleton(workspace.CreateExecutionContext(identityChannel: "daily", identityVersion: "17.0.0-preview.1")); 420services.AddSingleton(workspace.CreateExecutionContext(identityChannel: "stable", identityVersion: identityVersion)); 486services.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)
125options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(identityChannel: PackageChannelNames.Staging); 169options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(identityChannel: PackageChannelNames.Staging); 766options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(identityChannel: PackageChannelNames.Stable);
Commands\RootCommandTests.cs (1)
181options.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\Sdk\SdkResponseFileTests.cs (1)
52options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(aspireHomeDirectory: aspireHome);
Commands\SdkCommandTests.cs (1)
41options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(aspireHomeDirectory: aspireHome);
Commands\TestCommandTests.cs (8)
288var summaryPath = Assert.Single(Directory.GetFiles(workspace.CreateExecutionContext().AspireHomeDirectory.FullName, 373var summaryPath = Assert.Single(Directory.GetFiles(workspace.CreateExecutionContext().AspireHomeDirectory.FullName, 436Assert.False(Directory.Exists(Path.Combine(workspace.CreateExecutionContext().AspireHomeDirectory.FullName, "testruns"))); 506Assert.False(Directory.Exists(Path.Combine(workspace.CreateExecutionContext().AspireHomeDirectory.FullName, "testruns"))); 677workspace.CreateExecutionContext(), nonInteractive 1158Assert.False(Directory.Exists(Path.Combine(workspace.CreateExecutionContext().AspireHomeDirectory.FullName, "testruns"))); 1187Assert.False(Directory.Exists(Path.Combine(workspace.CreateExecutionContext().AspireHomeDirectory.FullName, "testruns"))); 1492Directory.CreateDirectory(workspace.CreateExecutionContext().HomeDirectory.FullName);
Commands\UpdateCommandTests.cs (7)
52options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(identityChannel: PackageChannelNames.Staging); 1593options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(identityChannel: identityChannel); 2714options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(identityChannel: PackageChannelNames.Staging); 2788options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(identityChannel: PackageChannelNames.Stable); 3228options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(identityChannel: identityChannel); 3445options.CliExecutionContextFactory = _ => workspace.CreateExecutionContext(identityChannel: PackageChannelNames.Staging); 3660options.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(), 686workspace.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(), 139using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 190using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, environment: environment); 469var context = workspace.CreateExecutionContext(); 528using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 537using var stoppedService = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 567using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 584using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 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, 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); 1379var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1407using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1437using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1468using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1495using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1518var context = workspace.CreateExecutionContext(); 1539var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 1564var context = workspace.CreateExecutionContext(); 1586var context = workspace.CreateExecutionContext(); 1637var context = workspace.CreateExecutionContext(); 1666var context = workspace.CreateExecutionContext(); 1698var context = workspace.CreateExecutionContext(); 1753using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 1774var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1804var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 1821var context = workspace.CreateExecutionContext(); 1838var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1871var context = workspace.CreateExecutionContext(); 1925var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1942var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1965var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 2005using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 2038using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, environment: environment); 2059var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 2081var context = workspace.CreateExecutionContext(); 2108using var next = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, clock: clock, interaction: interaction); 2156var context = workspace.CreateExecutionContext(); 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 (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)
3058var 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)
1454var executionContext = TestExecutionContextHelper.CreateExecutionContext(
Projects\ProjectUpdaterNuGetConfigurationTests.cs (1)
1017}).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());
Testing\TestRunReporterTests.cs (1)
726var context = workspace.CreateExecutionContext();
Utils\LegacySettingsFileCheckTests.cs (3)
46var executionContext = workspace.CreateExecutionContext(); 67var executionContext = workspace.CreateExecutionContext(); 158var executionContext = workspace.CreateExecutionContext();