Пример #1
0
        static void Main(string[] args)
        {
            Programmer programmer = new Programmer();
            Tester     tester     = new Tester();
            Marketolog marketolog = new Marketolog();

            List <ICommand> commands = new List <ICommand>
            {
                new CodeCommand(programmer),
                new TestCommand(tester, 2000),
                new AdvertizeCommand(marketolog)
            };
            Manager manager = new Manager();

            manager.SetCommand(new MacroCommand(commands));
            manager.StartProject();
            manager.StopProject();

            Console.Read();
        }
Пример #2
0
 public AdvertizeCommand(Marketolog m)
 {
     marketolog = m;
 }