178 references to TestExecutionContextHelper
Aspire.Cli.Tests (178)
Agents\AgentConfigurationTestContext.cs (1)
39ExecutionContext = TestExecutionContextHelper.CreateExecutionContext(Project, homeDirectory: Home);
Agents\ClaudeCodeAgentEnvironmentScannerTests.cs (4)
26TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot), 53TestExecutionContextHelper.CreateExecutionContext(workingDirectory, homeDirectory: homeDirectory), 82TestExecutionContextHelper.CreateExecutionContext(childDirectory, homeDirectory: homeDirectory), 116TestExecutionContextHelper.CreateExecutionContext(workingDirectory, homeDirectory: homeDirectory),
Agents\CopilotAppInstallationDetectorTests.cs (1)
140TestExecutionContextHelper.CreateExecutionContext(
Agents\OpenCodeAgentClientTests.cs (1)
20var executionContext = TestExecutionContextHelper.CreateExecutionContext(workingDirectory, homeDirectory: _context.Home);
Agents\TelemetryHookConfiguratorTests.cs (1)
388var executionContext = TestExecutionContextHelper.CreateExecutionContext(
Agents\TelemetryHookInstallerTests.cs (1)
177var executionContext = TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: home);
Agents\TelemetryHookScriptTests.cs (1)
569var executionContext = TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: home);
Agents\VsCodeAgentEnvironmentScannerTests.cs (2)
51TestExecutionContextHelper.CreateExecutionContext(childDirectory, homeDirectory: homeDirectory), 135return TestExecutionContextHelper.CreateExecutionContext(workingDirectory,
Backchannel\AppHostConnectionResolverTests.cs (3)
468var executionContext = TestExecutionContextHelper.CreateExecutionContext( 582var executionContext = TestExecutionContextHelper.CreateExecutionContext( 615return TestExecutionContextHelper.CreateExecutionContext(
Certificates\CertificateServiceTests.cs (2)
231options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext( 571options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext(
CliExecutionContextTests.cs (1)
35var ctx = TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(AppContext.BaseDirectory));
Commands\AddCommandTests.cs (3)
2006options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext( 3973options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext( 4475options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext(
Commands\AgentInitClientSelectionTests.cs (24)
83options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: homeDirectory); 139options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: homeDirectory); 166options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: homeDirectory); 301options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: homeDirectory); 342options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: homeDirectory); 374options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: homeDirectory); 424options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: homeDirectory); 509options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: homeDirectory); 565options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: homeDirectory); 603options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: homeDirectory); 640var executionContext = TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: homeDirectory); 768options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: homeDirectory); 795var executionContext = TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: homeDirectory); 845var executionContext = TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: homeDirectory); 900var executionContext = TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: homeDirectory); 965var executionContext = TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: homeDirectory); 1017var executionContext = TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: homeDirectory); 1115var executionContext = TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: homeDirectory); 1144var executionContext = TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: homeDirectory); 1176var executionContext = TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: homeDirectory); 1229var executionContext = TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: homeDirectory); 1262var executionContext = TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: homeDirectory); 1292var executionContext = TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: homeDirectory); 1331var executionContext = TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot, homeDirectory: homeDirectory);
Commands\AgentInitCommandTests.cs (1)
733return TestExecutionContextHelper.CreateExecutionContext(
Commands\InitCommandTests.cs (1)
2612return TestExecutionContextHelper.CreateExecutionContext(
Commands\NewCommandLocalTemplateTests.cs (2)
852services.AddSingleton(TestExecutionContextHelper.CreateExecutionContext( 1110services.AddSingleton(TestExecutionContextHelper.CreateExecutionContext(
Commands\NewCommandTemplateConfigPersistenceTests.cs (1)
555options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext(
Commands\NewCommandTests.cs (2)
3528options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext( 3677return TestExecutionContextHelper.CreateExecutionContext(
Commands\RootCommandTests.cs (4)
23options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext( 46options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext( 70options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext( 120options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext(
Commands\SecretCommandTests.cs (1)
966options.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\DotNetAppHostNuGetConfigMergerSnapshotTests.cs (5)
50var executionContext = TestExecutionContextHelper.CreateExecutionContext(root, hivesDirectory: hivesDir); 100var executionContext = TestExecutionContextHelper.CreateExecutionContext(root, hivesDirectory: hivesDir); 173var executionContext = TestExecutionContextHelper.CreateExecutionContext(root, hivesDirectory: hivesDir); 239var executionContext = TestExecutionContextHelper.CreateExecutionContext(root, hivesDirectory: hivesDir); 305var executionContext = TestExecutionContextHelper.CreateExecutionContext(root, hivesDirectory: hivesDir);
DotNet\DotNetCliRunnerTests.cs (1)
33return TestExecutionContextHelper.CreateExecutionContext(workingDirectory);
Mcp\ListAppHostsToolTests.cs (1)
169return TestExecutionContextHelper.CreateExecutionContext(workingDirectory);
Mcp\MockPackagingService.cs (1)
38return TestExecutionContextHelper.CreateExecutionContext(
Mcp\SelectAppHostToolTests.cs (4)
47TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot)); 94TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot)); 109var executionContext = TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot); 162TestExecutionContextHelper.CreateExecutionContext(workspace.WorkspaceRoot));
NuGet\NuGetPackagePrefetcherTests.cs (2)
27var executionContext = TestExecutionContextHelper.CreateExecutionContext(workingDir); 531return TestExecutionContextHelper.CreateExecutionContext(workingDir);
Packaging\PackagingServiceTests.cs (65)
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); 808var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 830var executionContext = TestExecutionContextHelper.CreateExecutionContext( 910var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 949var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 981var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1013var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1044var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1074var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1104var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1134var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1174TestExecutionContextHelper.CreateExecutionContext(tempDir), 1219var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1274var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1309var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1344var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1379var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1429TestExecutionContextHelper.CreateExecutionContext(tempDir), 1460var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1492var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1522var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1553var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1591var executionContext = TestExecutionContextHelper.CreateExecutionContext( 1634var executionContext = TestExecutionContextHelper.CreateExecutionContext( 1670var executionContext = TestExecutionContextHelper.CreateExecutionContext( 1703var executionContext = TestExecutionContextHelper.CreateExecutionContext( 1734var executionContext = TestExecutionContextHelper.CreateExecutionContext( 1758var executionContext = TestExecutionContextHelper.CreateExecutionContext( 1790var executionContext = TestExecutionContextHelper.CreateExecutionContext( 1841var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1882var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1934var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 1985var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 2041var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir, identityChannel: "local"); 2075var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir, identityChannel: "daily"); 2099var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 2139var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 2176var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 2206var executionContext = TestExecutionContextHelper.CreateExecutionContext(tempDir, hivesDirectory: hivesDir); 2235var executionContext = TestExecutionContextHelper.CreateExecutionContext( 2266var executionContext = TestExecutionContextHelper.CreateExecutionContext( 2295var executionContext = TestExecutionContextHelper.CreateExecutionContext( 2325var executionContext = TestExecutionContextHelper.CreateExecutionContext( 2345var executionContext = TestExecutionContextHelper.CreateExecutionContext(
Projects\GuestAppHostProjectTests.cs (1)
2586var executionContext = TestExecutionContextHelper.CreateExecutionContext(
Projects\PrebuiltAppHostServerTests.cs (2)
1453var executionContext = TestExecutionContextHelper.CreateExecutionContext( 4356var executionContext = TestExecutionContextHelper.CreateExecutionContext(
Projects\ProjectLocatorTests.cs (1)
30return TestExecutionContextHelper.CreateExecutionContext(
Projects\ProjectUpdaterNuGetConfigurationTests.cs (1)
1407services.AddSingleton(TestExecutionContextHelper.CreateExecutionContext(invocationDirectory));
Projects\ProjectUpdaterTests.cs (1)
2144return TestExecutionContextHelper.CreateExecutionContext(workingDirectory);
Secrets\SecretStoreResolverTests.cs (1)
548options.CliExecutionContextFactory = _ => TestExecutionContextHelper.CreateExecutionContext(
Telemetry\AspireCliTelemetryTests.cs (8)
28TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(AppContext.BaseDirectory)), 479Utils.TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(AppContext.BaseDirectory)), 511Utils.TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(AppContext.BaseDirectory)), 547Utils.TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(AppContext.BaseDirectory)), 581Utils.TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(AppContext.BaseDirectory)), 909Utils.TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(AppContext.BaseDirectory)), 932var executionContext = Utils.TestExecutionContextHelper.CreateExecutionContext( 956var executionContext = Utils.TestExecutionContextHelper.CreateExecutionContext(
Telemetry\InternalMicrosoftDetectorTests.cs (1)
1719var executionContext = Utils.TestExecutionContextHelper.CreateExecutionContext(
Telemetry\ReportedLogExportTests.cs (1)
268configuration, TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(AppContext.BaseDirectory)), tagsSource);
Telemetry\TelemetryConfigurationTests.cs (2)
102Utils.TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(AppContext.BaseDirectory)), 206Utils.TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(AppContext.BaseDirectory)),
Telemetry\TelemetryFixture.cs (1)
52executionContext ??= Utils.TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(AppContext.BaseDirectory));
Telemetry\TestTelemetryHelper.cs (1)
59=> Utils.TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(AppContext.BaseDirectory));
Templating\DotNetTemplateFactoryTests.cs (1)
350var executionContext = TestExecutionContextHelper.CreateExecutionContext(workingDirectory);
Templating\TemplateNuGetConfigServiceTests.cs (10)
879var executionContext = TestExecutionContextHelper.CreateExecutionContext( 953var executionContext = TestExecutionContextHelper.CreateExecutionContext( 996var executionContext = TestExecutionContextHelper.CreateExecutionContext( 1032var executionContext = TestExecutionContextHelper.CreateExecutionContext( 1067var executionContext = TestExecutionContextHelper.CreateExecutionContext( 1109var executionContext = TestExecutionContextHelper.CreateExecutionContext( 1155var executionContext = TestExecutionContextHelper.CreateExecutionContext( 1190return TestExecutionContextHelper.CreateExecutionContext( 1209var executionContext = TestExecutionContextHelper.CreateExecutionContext( 1266var executionContext = TestExecutionContextHelper.CreateExecutionContext(
TestServices\TestConfigSourceServices.cs (2)
43using var service = Create(TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(directory)), git: git, clock: clock); 60using var service = Create(TestExecutionContextHelper.CreateExecutionContext(project), git: git, clock: clock, interaction: interaction);
Utils\CliTestHelper.cs (1)
399return 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);