Beispiel #1
0
        public Validated <CancelClaimResponse> CancelClaim(CancelClaimRequest request)
        {
            var validationError = new CancelClaimValidator(claimQuery).ValidateRequest(request);

            if (validationError != null)
            {
                return(new Validated <CancelClaimResponse>(new Exception[] { validationError }));
            }

            return(new Validated <CancelClaimResponse>(new CancelClaimResponse()));
        }
 public Exception ValidateRequest(CancelClaimRequest request)
 {
     return((null == claimQuery.Get(request.Claim.Id))
         ? new InvalidOperationException(string.Format("Claim with Id {0} does not exist", request.Claim.Id))
         : null);
 }
 public Validated <CancelClaimResponse> CancelClaim(CancelClaimRequest request)
 {
     return(claimEngineService.CancelClaim(request));
 }