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