コード例 #1
0
        static void Main(string[] args)
        {
            Sauce            sauce   = new Sauce();
            Veggies          veggies = new Veggies();
            Cutlet           cutlet  = new Cutlet();
            Bun              bun     = new Bun();
            Burger           burger  = new Burger();
            BurgerFacadeBody bfp     = new BurgerFacadeBody(sauce, veggies, cutlet, bun, burger);
            Cook             cook    = new Cook();

            cook.CreateBurger(bfp);

            Console.Read();
        }
コード例 #2
0
 public void CreateBurger(BurgerFacadeBody facade)
 {
     facade.Start();
     facade.Stop();
 }