public void UpdateQuantityOnPiking(InventoryItemPicked @event)
 {
     Log(string.Format("updating inventory summary of item {0} ", @event.AggregateId));
     //var aggregate = _repository.GetById<Sample.Domain.Inventory.Domain.InventoryItem>(@event.AggregateId);
     var qm = GetById<InventoryItemTotalQuantity>(@event.AggregateId);
     qm.TotalAvailabilityInAllStorages -= @event.Quantity;
     Update(qm);
 }
예제 #2
0
 public void Apply(InventoryItemPicked @event)
 {
     Quantity -= @event.Quantity;
 }