Example #1
0
        public void PostTransactionData_Positive()
        {
            //for Moq tests

            //Arrange
            mockBllPaymentDetails.Setup(x => x.PostTransactionHistory(It.IsAny <string>())).Returns(paymentData.MockedRequestBody_PostTransaction());
            mockCrmPaymentDetails.Setup(x => x.PostTransactionHistory(It.IsAny <JKMServices.DTO.Payment>())).Returns(paymentData.PostTransactionData);

            //Act
            paymentDetails.PostTransactionHistory(paymentData.MockedRequestBody_PostTransaction());

            //Assert
            mockCrmPaymentDetails.VerifyAll();
        }