public UpdateInventoryItem(InventoryItemDto inventoryItem)
 {
     AggregateId = inventoryItem.Id;
     Timestamp   = DateTime.UtcNow;
     EventName   = "UpdateInventoryItem";
     EventData   = new UpdateInventoryItemData(inventoryItem);
 }
        public override void ApplyEventData(IModelAggregate <Guid> model)
        {
            UpdateInventoryItemData eventData = ((UpdateInventoryItemData)EventData);

            ((InventoryItemAggregate)model).LastEventTimestamp = Timestamp;
            ((InventoryItemAggregate)model).Name     = eventData.InventoryItemData.Name;
            ((InventoryItemAggregate)model).Count    = eventData.InventoryItemData.Count;
            ((InventoryItemAggregate)model).IsActive = eventData.InventoryItemData.IsActive;
            ((InventoryItemAggregate)model).Note     = eventData.InventoryItemData.Note;
        }