IEnumerable <Event> Handle(DeactivateItem cmd) { CheckIsActive(); yield return(new InventoryItemDeactivated()); }
void Handle(DeactivateItem cmd) { CheckIsActive(); active = false; }