Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Project Code is

ApplicationSession.Current.Principal = new SwiftPrincipal(new SwiftExternalIdentity(WebOperationContext.Current.IncomingRequest.Headers["Value"]));
response.ErrorInfo = MemberService.ValidateServiceCall(APIAccessPermissionEnum.ClaimService);

if (response.ErrorInfo.NumErrorRecs == 0)
{
}


Rhino Mock Unit test

[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();
}


What I have tried:

i am not able to get any solution to this is there any in Rhino mock that I can skip this line from project or It will be good if I can set value for same
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900