Exemplo 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;
 }
Exemplo 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;
 }
Exemplo 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();
 }
Exemplo 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();
 }