Inheritance: PPPDDDChap23.EventSourcing.Application.Infrastructure.DomainEvent
Exemplo n.º 1
0
        private void When(PhoneCallCharged phoneCallCharged)
        {
            _credit = _credit.Subtract(phoneCallCharged.CostOfCall);

            if (_freeCallAllowance != null)
                _freeCallAllowance.Subtract(phoneCallCharged.CoveredByAllowance);
        }
        private void When(PhoneCallCharged phoneCallCharged)
        {
            _credit = _credit.Subtract(phoneCallCharged.CostOfCall);

            if (_freeCallAllowance != null)
            {
                _freeCallAllowance.Subtract(phoneCallCharged.CoveredByAllowance);
            }
        }