Beispiel #1
0
        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();
        }
Beispiel #2
0
 public CoderCommand(Coder coder)
 {
     _coder = coder;
 }