Esempio n. 1
0
 public Ingredient(string name, decimal unitPrice, decimal quantity, MeasureUnitType unitType)
 {
     this.Name      = name;
     this.UnitPrice = unitPrice;
     this.UnitType  = unitType;
     this.Quantity  = quantity;
     this.IsDeleted = false;
 }
Esempio n. 2
0
 public Drink(string name, decimal price, int unitQuantity, int totalQuantity, MeasureUnitType measureUnitType)
     : base(name)
 {
     this.Price           = price;
     this.TotalQuantity   = totalQuantity;
     this.measureUnitType = measureUnitType;
     this.UnitQuantity    = unitQuantity;
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Benchmark"/> class.
 /// </summary>
 /// <param name="measureUnitType">Type of the measure.</param>
 private Benchmark(MeasureUnitType measureUnitType)
 {
     this.measureUnitType = measureUnitType;
     this.timer.Start();
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Benchmark"/> class.
 /// </summary>
 /// <param name="measureUnitType">Type of the measure.</param>
 private Benchmark(MeasureUnitType measureUnitType)
 {
     this.measureUnitType = measureUnitType;
     this.timer.Start();
 }