示例#1
0
文件: Product.cs 项目: keeed/Venturi
        public void IncreaseProductStock(int amountToIncrease)
        {
            _stock = _stock.IncreaseQuantity(amountToIncrease);

            _events.Add(new ProductStockIncreasedEvent(_productId.Value, _stock.Quantity));
        }