Exemplo n.º 1
0
 private void SetPrice(decimal price)
 {
     ProductPolicy.CheckPrice(price);
     //TODO: Fire event to notify users for price change
     UnitPrice = price;
 }
Exemplo n.º 2
0
 private void SetStock(double stock)
 {
     ProductPolicy.CheckStock(stock);
     //TODO: Fire event to notify supplier and sales employee
     UnitsInStock = stock;
 }