Braintree.Tests.Integration.TransactionIntegrationTest.Credit_WithServiceFeeIsDisallowed C# (CSharp) 메소드

Credit_WithServiceFeeIsDisallowed() 개인적인 메소드

private Credit_WithServiceFeeIsDisallowed ( ) : void
리턴 void
        public void Credit_WithServiceFeeIsDisallowed()
        {
            var request = new TransactionRequest
            {
                Amount = SandboxValues.TransactionAmount.AUTHORIZE,
                CreditCard = new TransactionCreditCardRequest
                {
                    Number = SandboxValues.CreditCardNumber.VISA,
                    ExpirationDate = "05/2009",
                },
                ServiceFeeAmount = 1M
            };

            Result<Transaction> result = gateway.Transaction.Credit(request);
            Assert.IsFalse(result.IsSuccess());

            Assert.AreEqual(
                ValidationErrorCode.TRANSACTION_SERVICE_FEE_IS_NOT_ALLOWED_ON_CREDITS,
                result.Errors.ForObject("Transaction").OnField("Base")[0].Code
            );
        }
TransactionIntegrationTest