private void When(ClaimRequestAutoSubstantiatedEvent @event) { _id = new Guid(@event.ClaimRequestId); _claimAmount = @event.Amount.Dollars(); _claimType = @event.ClaimType; CurrentClaimState = ClaimRequestStateEnum.Substantiated; }
private void When(ClaimRequestCreatedPendingVerificationEvent @event) { _id = new Guid(@event.ClaimRequestId); _claimAmount = @event.Amount.Dollars(); _claimType = @event.ClaimType; CurrentClaimState = ClaimRequestStateEnum.PendingSubstantiation; }
private void When(ClaimNotDisbursedEvent @event) { CurrentClaimState = ClaimRequestStateEnum.NotDisbursed; }
private void When(ClaimRequestRejectedEvent @event) { CurrentClaimState = ClaimRequestStateEnum.Rejected; }
private void When(CardUseVerifiedEvent @event) { CurrentClaimState = ClaimRequestStateEnum.Substantiated; }