1 write to ExecutionContext
Aspire.Cli.Tests (1)
Agents\AgentConfigurationTestContext.cs (1)
36ExecutionContext = TestExecutionContextHelper.CreateExecutionContext(Project, homeDirectory: Home);
20 references to ExecutionContext
Aspire.Cli.Tests (20)
Agents\AgentConfigurationTestContext.cs (8)
37Copilot = new CopilotAgentClient(ExecutionContext, Environment, NullLogger<CopilotAgentClient>.Instance); 38ClaudeCode = new ClaudeCodeAgentClient(ExecutionContext, Environment, NullLogger<ClaudeCodeAgentClient>.Instance); 39OpenCode = new OpenCodeAgentClient(ExecutionContext, Environment); 52public string CopilotDirectory => AgentPath.Expand(CopilotPaths.GetConfigDirectory(Home, Environment), ExecutionContext); 53public string ClaudeDirectory => ClaudeCodePaths.GetConfigDirectory(ExecutionContext, Environment); 54public string ClaudeManagedDirectory => AgentPath.GetManagedSettingsDirectory(ExecutionContext, Environment, "ClaudeCode", "claude-code"); 55public string OpenCodeDirectory => OpenCodePaths.GetConfigDirectory(ExecutionContext, Environment); 64options.CliExecutionContextFactory = _ => ExecutionContext;
Agents\AgentPathTests.cs (3)
29Assert.Equal(Path.Combine(expected, ".claude.json"), ClaudeCodePaths.GetGlobalMcpConfigPath(_context.ExecutionContext, _context.Environment)); 30Assert.Equal(expected, AgentPath.Expand(value, _context.ExecutionContext)); 55Assert.Equal(Path.Combine(_context.Project.FullName, "~other-user"), AgentPath.Expand("~other-user", _context.ExecutionContext));
Agents\LocalAspireSkillsTests.cs (1)
32Assert.False(Directory.Exists(_context.ExecutionContext.CacheDirectory.FullName));
Commands\AgentInitClientSelectionTests.cs (1)
1348options.CliExecutionContextFactory = _ => context.ExecutionContext;
Commands\AgentInitCommandTests.cs (7)
120options.AspireSkillsInstallerFactory = _ => new FakeAspireSkillsInstaller(context.ExecutionContext, 156options.AspireSkillsInstallerFactory = _ => new FakeAspireSkillsInstaller(context.ExecutionContext, 190? new FakeAspireSkillsInstaller(context.ExecutionContext, 192: new FakeAspireSkillsInstaller(context.ExecutionContext); 566options.AspireSkillsInstallerFactory = _ => new FakeAspireSkillsInstaller(context.ExecutionContext, 960context.ExecutionContext, AspireSkillsInstallResult.Installed(bundle)); 1122options.AspireSkillsInstallerFactory = _ => new FakeAspireSkillsInstaller(context.ExecutionContext,