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; }
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(); }
/// <summary> Constructor </summary> public Style(SizeTypeEnum ste, int v) { SizeType = ste; Value = v; }