Braintree.Tests.Integration.PaymentMethodIntegrationTest.Find_FindsPayPalAccount C# (CSharp) Method

Find_FindsPayPalAccount() private method

private Find_FindsPayPalAccount ( ) : void
return void
        public void Find_FindsPayPalAccount()
        {
            var request = new PaymentMethodRequest
            {
                CustomerId = gateway.Customer.Create(new CustomerRequest()).Target.Id,
                PaymentMethodNonce = Nonce.PayPalFuturePayment
            };
            Result<PaymentMethod> result = gateway.PaymentMethod.Create(request);
            Assert.IsTrue(result.IsSuccess());

            PaymentMethod found = gateway.PaymentMethod.Find(result.Target.Token);
            Assert.AreEqual(result.Target.Token, found.Token);
        }
PaymentMethodIntegrationTest