1 write to ExecutionContext
Aspire.Cli.Tests (1)
Agents\AgentConfigurationTestContext.cs (1)
39ExecutionContext = TestExecutionContextHelper.CreateExecutionContext(Project, homeDirectory: Home);
21 references to ExecutionContext
Aspire.Cli.Tests (21)
Agents\AgentConfigurationTestContext.cs (8)
40Copilot = new CopilotAgentClient(ExecutionContext, Environment, NullLogger<CopilotAgentClient>.Instance); 41ClaudeCode = new ClaudeCodeAgentClient(ExecutionContext, Environment, NullLogger<ClaudeCodeAgentClient>.Instance); 42OpenCode = new OpenCodeAgentClient(ExecutionContext, Environment); 57public string CopilotDirectory => AgentPath.Expand(CopilotPaths.GetConfigDirectory(Home, Environment), ExecutionContext); 58public string ClaudeDirectory => ClaudeCodePaths.GetConfigDirectory(ExecutionContext, Environment); 59public string ClaudeManagedDirectory => AgentPath.GetManagedSettingsDirectory(ExecutionContext, Environment, "ClaudeCode", "claude-code"); 60public string OpenCodeDirectory => OpenCodePaths.GetConfigDirectory(ExecutionContext, Environment); 69options.CliExecutionContextFactory = _ => ExecutionContext;
Agents\AgentPathTests.cs (7)
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)); 67Assert.Equal(expected ?? path, AgentPath.GetDisplayPath(path, _context.Project, _context.ExecutionContext)); 76Assert.Equal(".agents/skills/aspire/SKILL.md", AgentPath.GetDisplayPath(path, project, _context.ExecutionContext)); 85Assert.Equal(homePath, AgentPath.GetDisplayPath(homePath, AgentConfigurationScope.Project, _context.Project, _context.ExecutionContext)); 86Assert.Equal(projectPath, AgentPath.GetDisplayPath(projectPath, AgentConfigurationScope.Global, _context.Project, _context.ExecutionContext));
Commands\AgentInitClientSelectionTests.cs (1)
1616options.CliExecutionContextFactory = _ => context.ExecutionContext;
Commands\AgentInitCommandTests.cs (1)
1231: Path.Combine(AgentPath.GetManagedSettingsDirectory(context.ExecutionContext, context.Environment, "GitHubCopilot", "github-copilot"), overridePath),
Commands\ConfigSourceCommandTests.cs (1)
249using var sourceService = TestConfigSourceServices.Create(context.ExecutionContext, git: acquired);
Commands\DoctorCommandTests.cs (2)
53options.CliExecutionContextFactory = _ => context.ExecutionContext; 95options.CliExecutionContextFactory = _ => context.ExecutionContext;
Utils\AspireSkillsCheckTests.cs (1)
69=> new(new TestGitRepository(), _context.ExecutionContext);