170 references to TestExecutionContextHelper
Aspire.Cli.Tests (170)
Agents\AspireSkillsInstallerTests.cs (39)
36var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 84var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 143var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 193var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 273var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 307var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 370var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 442var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 481var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 516var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 549var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 591var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 636var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 683var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 752var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 815var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 867var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 896var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 943var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 1002var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 1058var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 1079var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 1102var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 1129var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 1165var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 1185var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 1218var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 1269var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 1327var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 1384var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 1582var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 1647var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 1696var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 1752var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 1802var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 1836var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 1872var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 1895var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory)); 1933var executionContext = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(rootDirectory));
Agents\ClaudeCodeAgentEnvironmentScannerTests.cs (1)
112return TestExecutionContextHelper.CreateExecutionContext(
Agents\CopilotCliAgentEnvironmentScannerTests.cs (1)
195return TestExecutionContextHelper.CreateExecutionContext(
Agents\TelemetryHookConfiguratorTests.cs (1)
282var executionContext = TestExecutionContextHelper.CreateExecutionContext(
Agents\TelemetryHookInstallerTests.cs (1)
103var executionContext = TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: home);
Agents\TelemetryHookScriptTests.cs (1)
406var executionContext = TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: home);
Agents\VsCodeAgentEnvironmentScannerTests.cs (1)
393return TestExecutionContextHelper.CreateExecutionContext(
Backchannel\AppHostConnectionResolverTests.cs (3)
336var executionContext = TestExecutionContextHelper.CreateExecutionContext( 447var executionContext = TestExecutionContextHelper.CreateExecutionContext( 479return TestExecutionContextHelper.CreateExecutionContext(
Certificates\CertificateServiceTests.cs (2)
229options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext( 569options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext(
CliExecutionContextTests.cs (1)
35var ctx = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(AppContext.BaseDirectory));
Commands\AddCommandTests.cs (2)
2536options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext( 2890options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext(
Commands\AgentInitCommandTests.cs (1)
953return TestExecutionContextHelper.CreateExecutionContext(
Commands\InitCommandTests.cs (1)
2096return TestExecutionContextHelper.CreateExecutionContext(
Commands\NewCommandTemplateConfigPersistenceTests.cs (1)
483options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext(
Commands\NewCommandTests.cs (1)
3484return TestExecutionContextHelper.CreateExecutionContext(
Commands\RootCommandTests.cs (4)
23options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext( 46options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext( 70options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext( 120options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext(
Commands\VsCodeExtensionCheckTests.cs (3)
19var executionContext = TestExecutionContextHelper.CreateExecutionContext(home, homeDirectory: home); 39var executionContext = TestExecutionContextHelper.CreateExecutionContext(home, homeDirectory: home); 69var executionContext = TestExecutionContextHelper.CreateExecutionContext(home, homeDirectory: home);
DotNet\DotNetCliRunnerTests.cs (1)
27return TestExecutionContextHelper.CreateExecutionContext(workingDirectory);
DotNet\ProcessExecutionDetachedTests.cs (1)
499executionContext ?? TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(workingDirectory)));
Mcp\ListAppHostsToolTests.cs (1)
169return TestExecutionContextHelper.CreateExecutionContext(workingDirectory);
Mcp\MockPackagingService.cs (1)
38return TestExecutionContextHelper.CreateExecutionContext(
NuGet\NuGetPackagePrefetcherTests.cs (2)
27var executionContext = TestExecutionContextHelper.CreateExecutionContext(workingDir); 528return TestExecutionContextHelper.CreateExecutionContext(workingDir);
Packaging\NuGetConfigMergerSnapshotTests.cs (5)
52var executionContext = TestExecutionContextHelper.CreateExecutionContext(root, hivesDirectory: hivesDir); 101var executionContext = TestExecutionContextHelper.CreateExecutionContext(root, hivesDirectory: hivesDir); 163var executionContext = TestExecutionContextHelper.CreateExecutionContext(root, hivesDirectory: hivesDir); 224var executionContext = TestExecutionContextHelper.CreateExecutionContext(root, hivesDirectory: hivesDir); 283var executionContext = TestExecutionContextHelper.CreateExecutionContext(root, hivesDirectory: hivesDir);
Packaging\PackagingServiceTests.cs (64)
28var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 61var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir, identityChannel: PackageChannelNames.Staging); 97var executionContext = TestExecutionContextHelper.CreateExecutionContext( 201var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir, identityChannel: PackageChannelNames.Staging); 238var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir, identityChannel: PackageChannelNames.Staging); 271var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir, identityChannel: PackageChannelNames.Staging); 305var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir, identityChannel: PackageChannelNames.Staging); 361var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir, identityChannel: identityChannel); 426var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir, identityChannel: PackageChannelNames.Local); 458var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir, identityChannel: PackageChannelNames.Local); 488var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir, identityChannel: PackageChannelNames.Local); 513var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir, identityChannel: PackageChannelNames.Local); 541var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir, identityChannel: PackageChannelNames.Local); 568var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir, identityChannel: PackageChannelNames.Local); 594var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir, identityChannel: PackageChannelNames.Local); 614var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir, identityChannel: PackageChannelNames.Stable); 635var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 665var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir, identityChannel: PackageChannelNames.Stable); 697var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir, identityChannel: PackageChannelNames.Daily); 719var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir, identityChannel: PackageChannelNames.Daily); 747var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir, identityChannel: identity); 772var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir, identityChannel: PackageChannelNames.Daily); 816var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 840var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 883var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 915var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 947var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 978var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1008var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1038var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1068var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1108TestExecutionContextHelper.CreateExecutionContext(tempDir), 1153var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1208var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1243var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1278var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1313var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1363TestExecutionContextHelper.CreateExecutionContext(tempDir), 1394var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1426var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1456var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1487var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1525var executionContext = TestExecutionContextHelper.CreateExecutionContext( 1568var executionContext = TestExecutionContextHelper.CreateExecutionContext( 1604var executionContext = TestExecutionContextHelper.CreateExecutionContext( 1637var executionContext = TestExecutionContextHelper.CreateExecutionContext( 1668var executionContext = TestExecutionContextHelper.CreateExecutionContext( 1692var executionContext = TestExecutionContextHelper.CreateExecutionContext( 1724var executionContext = TestExecutionContextHelper.CreateExecutionContext( 1775var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1816var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1868var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1919var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1975var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir, identityChannel: "local"); 2009var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir, identityChannel: "daily"); 2033var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 2073var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 2113var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 2143var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 2172var executionContext = TestExecutionContextHelper.CreateExecutionContext( 2203var executionContext = TestExecutionContextHelper.CreateExecutionContext( 2232var executionContext = TestExecutionContextHelper.CreateExecutionContext( 2262var executionContext = TestExecutionContextHelper.CreateExecutionContext( 2282var executionContext = TestExecutionContextHelper.CreateExecutionContext(
Projects\GuestAppHostProjectTests.cs (1)
1473var executionContext = TestExecutionContextHelper.CreateExecutionContext(
Projects\PrebuiltAppHostServerTests.cs (2)
798var executionContext = TestExecutionContextHelper.CreateExecutionContext( 2276var executionContext = TestExecutionContextHelper.CreateExecutionContext(
Projects\ProjectLocatorTests.cs (1)
29return TestExecutionContextHelper.CreateExecutionContext(
Projects\ProjectUpdaterTests.cs (1)
1713return TestExecutionContextHelper.CreateExecutionContext(workingDirectory);
Telemetry\AspireCliTelemetryTests.cs (5)
338Utils.TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(AppContext.BaseDirectory)), 370Utils.TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(AppContext.BaseDirectory)), 447Utils.TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(AppContext.BaseDirectory)), 470var executionContext = Utils.TestExecutionContextHelper.CreateExecutionContext( 494var executionContext = Utils.TestExecutionContextHelper.CreateExecutionContext(
Telemetry\InternalMicrosoftDetectorTests.cs (1)
572var executionContext = Utils.TestExecutionContextHelper.CreateExecutionContext(
Telemetry\TelemetryConfigurationTests.cs (2)
98Utils.TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(AppContext.BaseDirectory)), 134Utils.TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(AppContext.BaseDirectory)),
Telemetry\TelemetryFixture.cs (1)
46executionContext ??= Utils.TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(AppContext.BaseDirectory));
Telemetry\TestTelemetryHelper.cs (1)
57=> Utils.TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(AppContext.BaseDirectory));
Templating\DotNetTemplateFactoryTests.cs (1)
351var executionContext = TestExecutionContextHelper.CreateExecutionContext(workingDirectory);
Templating\TemplateNuGetConfigServiceTests.cs (10)
649var executionContext = TestExecutionContextHelper.CreateExecutionContext( 723var executionContext = TestExecutionContextHelper.CreateExecutionContext( 766var executionContext = TestExecutionContextHelper.CreateExecutionContext( 802var executionContext = TestExecutionContextHelper.CreateExecutionContext( 837var executionContext = TestExecutionContextHelper.CreateExecutionContext( 879var executionContext = TestExecutionContextHelper.CreateExecutionContext( 925var executionContext = TestExecutionContextHelper.CreateExecutionContext( 960return TestExecutionContextHelper.CreateExecutionContext( 979var executionContext = TestExecutionContextHelper.CreateExecutionContext( 1036var executionContext = TestExecutionContextHelper.CreateExecutionContext(
Utils\CliTestHelper.cs (1)
362return TestExecutionContextHelper.CreateExecutionContext(WorkingDirectory, packagesDirectory: PackagesDirectory);
Utils\LegacySettingsFileCheckTests.cs (4)
24var executionContext = TestExecutionContextHelper.CreateExecutionContext(subDir); 91var executionContext = TestExecutionContextHelper.CreateExecutionContext(subDir); 114var executionContext = TestExecutionContextHelper.CreateExecutionContext(subDir); 146var executionContext = TestExecutionContextHelper.CreateExecutionContext(workingDir);