static void Main(string[] args) { List <Task> tasks; if (args[0].Length > 0) { tasks = args[0]; } else { tasks = new List <Task>(); } TaskManager taskManager = new TaskManager(tasks); TaskUpdater taskUpdater = new TaskUpdater(); TaskOrchestrator taskOrchestrator = new TaskOrchestrator(taskManager, taskUpdater); }
public TaskOrchestrator(TaskManager taskManager, TaskUpdater taskUpdater) { this.taskUpdater.taskManager = taskManager; this.taskManager = taskManager; }