public async Task <StripeResponse <Card> > CreateCard(CustomerCardCreateArguments arguments,
                                                              CancellationToken cancellationToken = default(CancellationToken))
        {
            var request = new StripeRequest <CustomerCardCreateArguments, Card>
            {
                UrlPath = PathHelper.GetPath(Paths.Customers, arguments.CustomerId, Paths.Sources),
                Model   = arguments
            };

            return(await _client.Post(request, cancellationToken));
        }
        public async Task CreateCardTest()
        {
            // Arrange
            var args = new CustomerCardCreateArguments
            {
                CustomerId = "customer-id"
            };

            _stripe.Post(
                Arg.Is <StripeRequest <CustomerCardCreateArguments, Card> >(
                    a => a.UrlPath == "customers/" + args.CustomerId + "/sources" && a.Model == args),
                _cancellationToken).Returns(Task.FromResult(new StripeResponse <Card>()));

            // Act
            var response = await _client.CreateCard(args, _cancellationToken);

            // Assert
            response.Should().NotBeNull();
        }
 public void Init()
 {
     _args = GenFu.GenFu.New <CustomerCardCreateArguments>();
 }