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