public async Task<StripeResponse<Recipient>> UpdateRecipient(RecipientUpdateArguments arguments,
     CancellationToken cancellationToken = default(CancellationToken))
 {
     var request = new StripeRequest<RecipientUpdateArguments, Recipient>
     {
         UrlPath = PathHelper.GetPath(Paths.Recipients, arguments.Id),
         Model = arguments
     };
     return await _client.Post(request, cancellationToken);
 }
        public void RecipientUpdateArguments_DoesNotHaveRequiredFields()
        {
            // Arrange 
            _args = new RecipientUpdateArguments();

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

            // Assert
            keyValuePairs.Should().HaveCount(0);
        }
 public async Task UpdateRecipientTest()
 {
     var args = new RecipientUpdateArguments
     {
         Id = "some-value"
     };
     _stripe.Post(
         Arg.Is<StripeRequest<RecipientUpdateArguments, Recipient>>(
             a => a.UrlPath == "recipients/" + args.Id && a.Model == args), _cancellationToken)
         .Returns(Task.FromResult(new StripeResponse<Recipient>()));
     var response = await _client.UpdateRecipient(args, _cancellationToken);
     response.Should().NotBeNull();
 }
 public void Init()
 {
     _args = GenFu.GenFu.New<RecipientUpdateArguments>();
 }