Пример #1
0
        public void AcquirerFulfillARequest_Fullfillment_GetRequestId()
        {
            //arrange
            String requestId = "2000020";
            RetrievalFulfillmentRequest retrievalFulfillmentRequest = new RetrievalFulfillmentRequest();

            retrievalFulfillmentRequest.acquirerResponseCd = "D";
            retrievalFulfillmentRequest.docTypeIndicator   = "2";
            retrievalFulfillmentRequest.memo = "This is an example of what a memo could contain";
            retrievalFulfillmentRequest.fileAttachment.filename = "test.tif";
            retrievalFulfillmentRequest.fileAttachment.file     = "sample file";
            //act
            Retrievals retrievals = new Retrievals(apiController);
            String     result     = retrievals.AcquirerFulfillRequest(claimId, requestId, retrievalFulfillmentRequest);

            //assert
            Assert.That(result, Is.EqualTo(requestId));
        }
Пример #2
0
        public void AcquirerFulfillARequest_Fullfillment_GetRequestId()
        {
            //arrange
            String requestId = "2000020";
            RetrievalFulfillmentRequest retrievalFulfillmentRequest = new RetrievalFulfillmentRequest();

            retrievalFulfillmentRequest.acquirerResponseCd = "D";
            retrievalFulfillmentRequest.docTypeIndicator   = "2";
            retrievalFulfillmentRequest.memo = "This is an example of what a memo could contain";
            retrievalFulfillmentRequest.fileAttachment.filename = "test.tif";
            retrievalFulfillmentRequest.fileAttachment.file     = "sample file";

            apiController.Setup(f => f.Create <RetrievalResponse>(It.IsAny <long>(), It.IsAny <String>(), retrievalFulfillmentRequest))
            .Returns(new RetrievalResponse()
            {
                requestId = requestId
            });
            //act
            Retrievals retrievals = new Retrievals(apiController.Object);
            String     result     = retrievals.AcquirerFulfillRequest(0, claimId, requestId, retrievalFulfillmentRequest);

            //assert
            Assert.That(result, Is.EqualTo(requestId));
        }