Braintree.Tests.Integration.CustomerIntegrationTest.Find_IncludesAmexExpressCheckoutCardsInPaymentMethods C# (CSharp) Метод

Find_IncludesAmexExpressCheckoutCardsInPaymentMethods() приватный Метод

private Find_IncludesAmexExpressCheckoutCardsInPaymentMethods ( ) : void
Результат void
        public void Find_IncludesAmexExpressCheckoutCardsInPaymentMethods()
        {
            var createRequest = new CustomerRequest
            {
                PaymentMethodNonce = Nonce.AmexExpressCheckout
            };
            Customer createdCustomer = gateway.Customer.Create(createRequest).Target;
            Customer customer = gateway.Customer.Find(createdCustomer.Id);
            Assert.IsNotNull(customer.AmexExpressCheckoutCards);
            Assert.IsNotNull(customer.PaymentMethods);
            AmexExpressCheckoutCard card = customer.AmexExpressCheckoutCards[0];
            Assert.IsNotNull(card.Token);
            Assert.IsNotNull(card.CardMemberNumber);
            Assert.AreEqual(card, customer.PaymentMethods[0]);
        }
CustomerIntegrationTest