public async Task<StripeResponse<Pagination<BitcoinReceiver>>> GetBitcoinReceivers(
     BitcoinReceiverListFilter filter, CancellationToken cancellationToken = default(CancellationToken))
 {
     var request = new StripeRequest<BitcoinReceiverListFilter, Pagination<BitcoinReceiver>>
     {
         UrlPath = PathHelper.GetPath(Paths.Bitcoin, Paths.Receivers),
         Model = filter
     };
     return await _client.Get(request, cancellationToken);
 }
        public void BitcoinReceiverListFilter_DoesNotHaveRequiredFields()
        {
            // Arrange 
            _filter = new BitcoinReceiverListFilter();

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

            // Assert
            keyValuePairs.Should().HaveCount(0);
        }
        public async Task GetBitcoinReceiversTest()
        {
            // Arrange
            var filter = new BitcoinReceiverListFilter();
            _stripe.Get(
                Arg.Is<StripeRequest<BitcoinReceiverListFilter, Pagination<BitcoinReceiver>>>(
                    a => a.UrlPath == "bitcoin/receivers" && a.Model == filter), _cancellationToken)
                .Returns(Task.FromResult(new StripeResponse<Pagination<BitcoinReceiver>>()));

            // Act
            var response = await _client.GetBitcoinReceivers(filter, _cancellationToken);

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