public async Task GetBalanceHistoryTest()
 {
     var filter = new BalanceTransactionListFilter();
     _stripe.Get(
         Arg.Is<StripeRequest<BalanceTransactionListFilter, Pagination<BalanceTransaction>>>(
             a => a.UrlPath == "balance/history"), _cancellationToken)
         .Returns(Task.FromResult(new StripeResponse<Pagination<BalanceTransaction>>()));
     var response = await _client.GetBalanceTranasactions(filter, _cancellationToken);
     response.Should().NotBeNull();
 }
 public async Task<StripeResponse<Pagination<BalanceTransaction>>> GetBalanceTranasactions(
     BalanceTransactionListFilter filter, CancellationToken cancellationToken = default(CancellationToken))
 {
     var request = new StripeRequest<BalanceTransactionListFilter, Pagination<BalanceTransaction>>
     {
         UrlPath = PathHelper.GetPath(Paths.Balance, Paths.History),
         Model = filter
     };
     return await _client.Get(request, cancellationToken);
 }
        public void BalanceTransactionListFilter_DoesNotHaveRequiredFields()
        {
            // Arrange 
            _filter = new BalanceTransactionListFilter();

            // Act
            var keyValuePairs = StripeClient.GetModelKeyValuePairs(_filter).ToList();

            // Assert
            keyValuePairs.Should().HaveCount(0);
        }
 public void Init()
 {
     _filter = GenFu.GenFu.New<BalanceTransactionListFilter>();
 }