public WoodProcessingFacade(Lumberjack l, Carpenter c, Forester f, WoodPorter wp)
 {
     lumberjack = l;
     carpenter  = c;
     forester   = f;
     woodPorter = wp;
 }
Beispiel #2
0
        static void Main(string[] args)
        {
            Lumberjack l  = new Lumberjack();
            Forester   f  = new Forester();
            WoodPorter wp = new WoodPorter();
            Carpenter  c  = new Carpenter();

            WoodProcessingFacade lumbermill = new WoodProcessingFacade(l, c, f, wp);

            lumbermill.Start();
            Console.WriteLine();
            lumbermill.Stop();

            Console.ReadLine();
        }