Beispiel #1
0
        public Appetizer InitializeAppetizer(string name, int quantity, int dinerSerialNumber, eAppetizerTypes appetizerType)
        {
            //DishBuilder<Appetizer> dishBuilder1 = new
            AppetizerBuilder appetizerBuilder = new AppetizerBuilder();

            Appetizer appetizer = appetizerBuilder.BuildDish(name, quantity, dinerSerialNumber, appetizerType);

            return(appetizer);

            //DishBuilders.DishBuilders.AppetizerBuilder.Appetizer = new Appetizer(name, quantity, dinerSerialNumber, appetizerType);
            //DishBuilders.Director.SetDishRanks(DishBuilders.DishBuilders.AppetizerBuilder);

            //return DishBuilders.DishBuilders.AppetizerBuilder.Appetizer;
        }
Beispiel #2
0
        public Appetizer BuildDish(string name, int quantity, int dinerSerialNumber, eAppetizerTypes appetizerType)
        {
            Dish = new Appetizer(name, quantity, dinerSerialNumber, appetizerType);

            return(base.BuildDish(eDishTypes.Appetizer) as Appetizer);
        }