Example #1
0
        private void RaiseClaimNotDisbursedEvent(DisburseClaim command, string reason)
        {
            var claimNotDisbursedEvent = new ClaimNotDisbursedEvent
            {
                ClaimAmount = _state.ClaimAmount.Amount,
                ClaimId     = command.ClaimId,
                ClaimType   = _state.ClaimType,
                Reason      = reason,
            };

            ApplyEvent(claimNotDisbursedEvent, @event => _state.Apply(@event));
        }