Braintree.Tests.Integration.CustomerIntegrationTest.Create_WithPayPalPaymentMethodNonce C# (CSharp) 메소드

Create_WithPayPalPaymentMethodNonce() 개인적인 메소드

private Create_WithPayPalPaymentMethodNonce ( ) : void
리턴 void
        public void Create_WithPayPalPaymentMethodNonce()
        {            
            string nonce = TestHelper.GenerateFuturePaymentPayPalNonce(gateway);
            Result<Customer> result = gateway.Customer.Create(new CustomerRequest{
                PaymentMethodNonce = nonce
            });
            Assert.IsTrue(result.IsSuccess());
            var customer = result.Target;
            Assert.AreEqual(1, customer.PayPalAccounts.Length);
            Assert.AreEqual(customer.PayPalAccounts[0].Token, customer.DefaultPaymentMethod.Token);
               
         }
CustomerIntegrationTest