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)); }
private void When(ClaimNotDisbursedEvent @event) { CurrentClaimState = ClaimRequestStateEnum.NotDisbursed; }