Exemplo n.º 1
0
 public Dish BuildDish(eDishTypes dishType)
 {
     SetDishType(dishType);
     SetMainDishRank();
     SetSecondDishRank();
     SetThirdDishRank();
     SetDishPrice();
     return(GetDish());
 }
Exemplo n.º 2
0
        public T Build(eDishTypes dishType)
        {
            Dish2 = new T();

            SetDishType(dishType)
            .SetMainDishRank()
            .SetSecondDishRank()
            .SetThirdDishRank()
            .SetDishPrice();

            return(GetDish());
        }
Exemplo n.º 3
0
 void SetDishType(eDishTypes dishType) => DishType = dishType;
Exemplo n.º 4
0
 public IDishBuilder <T> SetDishType(eDishTypes dishType)
 {
     throw new NotImplementedException();
 }