Ejemplo n.º 1
0
        public void DecrementProductUnitsInStock(int quantity)
        {
            var @event = new DecrementProductUnitsInStockEvent
            {
                AggregateId = Id,
                Quantity    = quantity
            };

            ApplyChange(@event);
        }
Ejemplo n.º 2
0
 public void Handle(DecrementProductUnitsInStockEvent @event)
 {
     Id = @event.AggregateId;
     //@event.Quantity;
 }