Exemplo n.º 1
0
 public KebabItem(SizeTypeEnum sizeType,
                  PitaTypeEnum pitaType,
                  List <SauceTypeEnum> sauces,
                  string comment,
                  int quantity)
 {
     this.pitaType = pitaType;
     this.sizeType = sizeType;
     this.sauces   = sauces;
     this.comment  = comment;
     this.quantity = quantity;
 }
Exemplo n.º 2
0
        public decimal Calculate(decimal weight, decimal calories, SizeTypeEnum sizeType)
        {
            switch (sizeType)
            {
            case SizeTypeEnum.Grams:
                return(weight / 100m * calories);

            case SizeTypeEnum.Pieces:
                return(weight * calories);
            }

            throw new NotImplementedException();
        }
Exemplo n.º 3
0
 /// <summary> Constructor </summary>
 public Style(SizeTypeEnum ste, int v)
 {
     SizeType = ste; Value = v;
 }