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