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