public static void Main(string[] args) { Coder coder = new Coder(); Tester tester = new Tester(); MacroCommand macroCommand = new MacroCommand(); macroCommand.Add(new CoderCommand(coder)); macroCommand.Add(new TesterCommand(tester)); Manager manager = new Manager(); manager.SetCommand(macroCommand); manager.StartProject(); manager.StopProject(); Console.ReadKey(); }
public CoderCommand(Coder coder) { _coder = coder; }