Example #1
0
        public void Handle(QuantityChangedEvent quantityChangedEvent)
        {
            if (!canHandle(quantityChangedEvent))
            {
                return;
            }

            Edit(_quantity);
        }
Example #2
0
 private bool canHandle(QuantityChangedEvent quantityChangedEvent)
 {
     return(Equals(quantityChangedEvent.Quantity, _quantityToEdit) ||
            Equals(quantityChangedEvent.Quantity, _quantity));
 }