1 write to Copilot
Aspire.Cli.Tests (1)
Agents\AgentConfigurationTestContext.cs (1)
40
Copilot
= new CopilotAgentClient(ExecutionContext, Environment, NullLogger<CopilotAgentClient>.Instance);
34 references to Copilot
Aspire.Cli.Tests (34)
Agents\AgentConfigurationTestContext.cs (1)
43
Clients = [
Copilot
, ClaudeCode, OpenCode];
Agents\AgentConfigurationTests.cs (11)
196
var path = _context.
Copilot
.GetIntegrationConfigPath(AgentConfigurationScope.Project, _context.Project);
204
await _context.
Copilot
.UpdateIntegrationConfigAsync(
522
IAgentClient[] clients = [_context.
Copilot
];
685
var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.Global, [_context.
Copilot
]).DefaultTimeout();
686
var repeated = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.Global, [_context.
Copilot
]).DefaultTimeout();
704
AgentConfigurationScope.Global, [_context.
Copilot
, _context.ClaudeCode]);
708
Assert.Equal([_context.
Copilot
, _context.ClaudeCode], result.Clients);
726
AgentConfigurationScope.Global, [_context.
Copilot
, _context.ClaudeCode]);
731
Assert.Equal([_context.
Copilot
, _context.ClaudeCode], result.Clients);
741
AgentConfigurationScope.Project, [_context.
Copilot
, _context.ClaudeCode]);
755
AgentConfigurationScope.Project, [_context.
Copilot
], cancellation.Token)).DefaultTimeout();
Agents\AgentPathTests.cs (2)
45
_context.
Copilot
.GetIntegrationConfigPath(AgentConfigurationScope.Global, _context.Project));
47
_context.
Copilot
.GetMcpConfigPath(AgentConfigurationScope.Global, _context.Project));
Agents\SkillSourceTests.cs (3)
236
var path = context.
Copilot
.GetIntegrationConfigPath(AgentConfigurationScope.Project, context.Project);
241
var result = Assert.Single(await context.ConfigureIntegrationAsync(AgentConfigurationScope.Project, [context.
Copilot
]).DefaultTimeout());
391
var client = context.
Copilot
;
Commands\AgentInitClientSelectionTests.cs (3)
1641
Assert.True(File.Exists(context.
Copilot
.GetIntegrationConfigPath(AgentConfigurationScope.Global, context.Project)));
1642
Assert.True(File.Exists(context.
Copilot
.GetMcpConfigPath(AgentConfigurationScope.Global, context.Project)));
1649
var mcpPath = context.
Copilot
.GetMcpConfigPath(AgentConfigurationScope.Global, context.Project);
Commands\AgentInitCommandTests.cs (13)
107
context.
Copilot
.GetIntegrationConfigPath(AgentConfigurationScope.Project, context.Project)), "json")
216
context.
Copilot
.GetIntegrationConfigPath(AgentConfigurationScope.Project, context.Project)), "json")
527
var config = await File.ReadAllTextAsync(context.
Copilot
.GetIntegrationConfigPath(AgentConfigurationScope.Project, context.Project));
567
context.
Copilot
.GetIntegrationConfigPath(AgentConfigurationScope.Project, context.Project)), "json")
863
Assert.All(await context.ConfigureIntegrationAsync(scope, [context.
Copilot
]).DefaultTimeout(),
956
IAgentClient[] clients = [context.
Copilot
, context.ClaudeCode];
1084
context.
Copilot
.GetIntegrationConfigPath(AgentConfigurationScope.Project, context.Project),
1141
IAgentClient client = agent == "copilot" ? context.
Copilot
: context.OpenCode;
1220
var client = agent == "copilot" ? context.
Copilot
: context.ClaudeCode;
1295
Assert.True(context.
Copilot
.HasIntegrationRegistration(
1383
Assert.True(File.Exists(context.
Copilot
.GetMcpConfigPath(scope, context.Project)));
1417
Assert.True(File.Exists(context.
Copilot
.GetIntegrationConfigPath(AgentConfigurationScope.Project, context.Project)));
1418
Assert.True(File.Exists(context.
Copilot
.GetMcpConfigPath(AgentConfigurationScope.Project, context.Project)));
Commands\ConfigSourceCommandTests.cs (1)
269
"copilot" => context.
Copilot
,