public void Handle(QuantityChangedEvent quantityChangedEvent) { if (!canHandle(quantityChangedEvent)) { return; } Edit(_quantity); }
private bool canHandle(QuantityChangedEvent quantityChangedEvent) { return(Equals(quantityChangedEvent.Quantity, _quantityToEdit) || Equals(quantityChangedEvent.Quantity, _quantity)); }