예제 #1
0
        public void Ent_CreateFee_CreateFee_FeeId()
        {
            //arrange
            String claimId = "200002020654";
            String feeId   = "20002052146";

            feeDetail = new FeeDetail();
            feeDetail.cardAcceptorIdCode = "123456789012345";
            feeDetail.cardNumber         = "500000000001234";
            feeDetail.countryCode        = "USA";
            feeDetail.currency           = "USD";
            feeDetail.feeDate            = "2017-02-11";
            feeDetail.destinationMember  = "002083";
            feeDetail.feeAmount          = "100.00";
            feeDetail.creditSender       = "true";
            feeDetail.creditReceiver     = "false";
            feeDetail.message            = "This is a test message";
            feeDetail.reason             = "7604";
            apiController.Setup(f => f.Create <FeeDetail>(It.IsAny <long>(), It.IsAny <String>(), feeDetail))
            .Returns(new FeeDetail()
            {
                feeId = feeId
            });
            //act
            Fees fee    = new Fees(apiController.Object);
            var  result = fee.CreateFee(0, claimId, feeDetail);

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