Пример #1
0
        public void StripeGatewayUpdatesCustomer()
        {
            var paymentGateway = new Stripe();
            var customer       = paymentGateway.Customer(1, "alain rex rivas", "*****@*****.**");

            Assert.AreEqual("alain rex rivas", (string)customer.description);
        }
Пример #2
0
        public void StripeGatewayCreatesCustomer()
        {
            var paymentGateway = new Stripe();
            int Id             = 1;
            var customer       = paymentGateway.Customer(Id, "alain rivas", "*****@*****.**");

            Assert.IsNotNull(customer);
            Assert.IsNull(customer["error"]);
        }