public async Task<StripeResponse<Pagination<Charge>>> GetCharges(ChargeListFilter filter,
     CancellationToken cancellationToken = default(CancellationToken))
 {
     var request = new StripeRequest<ChargeListFilter, Pagination<Charge>>
     {
         UrlPath = Paths.Charges,
         Model = filter
     };
     return await _client.Get(request, cancellationToken);
 }
 public async Task GetChargesTest()
 {
     var filter = new ChargeListFilter();
     _stripe.Get(
         Arg.Is<StripeRequest<ChargeListFilter, Pagination<Charge>>>(
             a => a.UrlPath == "charges" && a.Model == filter), _cancellationToken)
         .Returns(Task.FromResult(new StripeResponse<Pagination<Charge>>()));
     var response = await _client.GetCharges(filter, _cancellationToken);
     response.Should().NotBeNull();
 }
        public void ChargeListFilter_DoesNotHaveRequiredFields()
        {
            // Arrange 
            _filter = new ChargeListFilter();

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

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