public void CreateCharge_UsingCustomerId_Success()
        {
            var createCustomerRequest = new CreateCustomerRequest()
            {
                Name        = "Customer Name",
                Description = "Description",
                Email       = "*****@*****.**",
                CardDetails = new Card()
                {
                    Name        = "Abdullah Ahmed",
                    Cvc         = 123,
                    ExpireMonth = 12,
                    ExpireYear  = 2020,
                    Number      = "4242424242424242"
                }
            };

            ApiResponse <Customer> customer = _customerService.CreateCustomer(createCustomerRequest);

            _createChargeRequest.CustomerId = customer.Content.Id;

            ApiResponse <Charge> response = _service.CreateCharge(_createChargeRequest);

            Assert.IsTrue(!string.IsNullOrEmpty(response.Content.Id));
            Assert.IsTrue(response.Content.State == ChargeState.Authorized);
        }
        public void CreateCustomer_UsingCardDetails_Success()
        {
            _createCustomerRequest.CardDetails = new Card()
            {
                Name        = "Abdullah Ahmed",
                Cvc         = 123,
                ExpireMonth = 12,
                ExpireYear  = 2020,
                Number      = "4242424242424242"
            };

            ApiResponse <Customer> response = _customerService.CreateCustomer(_createCustomerRequest);

            Assert.IsFalse(response.IsError);
            Assert.IsTrue(!string.IsNullOrEmpty(response.Content.Id));
        }