コード例 #1
0
 public HamPhrase(
     IFoodProduct currentFood,
     HamType Ham)
 {
     this.currentFood = currentFood;
     this.Ham         = Ham;
 }
コード例 #2
0
 public CheesePhrase(
     IFoodProduct currentFood,
     CheeseType Cheese)
 {
     this.currentFood = currentFood;
     this.Cheese      = Cheese;
 }
コード例 #3
0
 public Souce(
     IFoodProduct decoratedInstance,
     Ingredients.Souce.SouceType souceType) :
     base(decoratedInstance)
 {
     this.souceType = souceType;
 }
コード例 #4
0
 public MeatPhrase(
     IFoodProduct currentFood,
     MeatType meat)
 {
     this.currentFood = currentFood;
     this.meat        = meat;
 }
コード例 #5
0
 public Ham(
     IFoodProduct decoratedInstance,
     int weight,
     HamType hamType) :
     base(decoratedInstance, weight)
 {
     this.hamType = hamType;
 }
コード例 #6
0
 public Meat(
     IFoodProduct decoratedInstance,
     int weight,
     Ingredients.Meat.MeatType meatType) :
     base(decoratedInstance, weight)
 {
     this.meatType = meatType;
 }
コード例 #7
0
 public Burger(IFoodProduct underlyingFoodProduct, Func <DateTime> getTimeStamp = null) :
     this(underlyingFoodProduct)
 {
     if (getTimeStamp != null)
     {
         this.getTimeStamp = getTimeStamp;
     }
 }
コード例 #8
0
 public IngrediantsBaseTestExposal(
     IFoodProduct decoratedIngrediant,
     int ownCalories,
     int ownPrice) :
     base(decoratedIngrediant)
 {
     this.ownCalories = ownCalories;
     this.ownPrice    = ownPrice;
 }
コード例 #9
0
 public Cheese(
     IFoodProduct decoratedInstance,
     int weight,
     CheeseType cheeseType) :
     base(decoratedInstance, weight)
 {
     this.cheeseType = cheeseType;
     this.weight     = weight;
 }
コード例 #10
0
 public WeightedIngrediants(IFoodProduct foodProduct, int weight) : base(foodProduct)
 {
     this.weight = weight;
 }
コード例 #11
0
 public Burger(IFoodProduct underlyingFoodProduct)
 {
     this.underlyingFoodProduct = underlyingFoodProduct;
 }
コード例 #12
0
 public static IFoodProduct AddSouce(this IFoodProduct instance, SouceType typeOfSouce)
 {
     return(new Souce(instance, typeOfSouce));
 }
コード例 #13
0
 public static Burger ToBurger(this IFoodProduct ingredients)
 {
     return(new Burger(ingredients));
 }
コード例 #14
0
 public static CheesePhrase AddCheese(this IFoodProduct instance, CheeseType typeOfCheese)
 {
     return(new CheesePhrase(instance, typeOfCheese));
 }
コード例 #15
0
 public static HamPhrase AddHam(this IFoodProduct instance, HamType typeOfHam)
 {
     return(new HamPhrase(instance, typeOfHam));
 }
コード例 #16
0
 public static MeatPhrase AddMeat(this IFoodProduct instance, MeatType typeOfMeat)
 {
     return(new MeatPhrase(instance, typeOfMeat));
 }
 public WeightedIngrediantsTestExposal(
     IFoodProduct foodProduct,
     int weight) :
     base(foodProduct, weight)
 {
 }
コード例 #18
0
 public IngrediantsBase(IFoodProduct decoratedIngrediant)
 {
     this.decoratedIngrediant = decoratedIngrediant;
 }