ApplicationSession.Current.Principal = new SwiftPrincipal(new SwiftExternalIdentity(WebOperationContext.Current.IncomingRequest.Headers["Value"])); response.ErrorInfo = MemberService.ValidateServiceCall(APIAccessPermissionEnum.ClaimService); if (response.ErrorInfo.NumErrorRecs == 0) {
[TestMethod, SwiftTestCategory(Category.Negative)] public void Test_BlankAndInvalidReq() { _mockReqObj = new PreAuthRequest { PreAuthCorrelationId = PreAuthCorrelationId, LifetimeId = MemberId }; Expect.Call(_mockIMemberServiceImpl.ValidateServiceCall(APIAccessPermissionEnum.ClaimService)).Return(new ErrorInfo()).Repeat.Once(); Expect.Call(_mockIAdjudicationFacade.GetPreAuthGuidancePathways()).Return(GetPreAuthGuidancePathways()); SwiftMockRepository.ReplayAll(); PreAuthResponse response = _mockClaimFacadeImpl.CreateAndAdjudicatePreAuth(_mockReqObj); Assert_Error_TestResult(response, 16); SwiftMockRepository.VerifyAll(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)