public async Task FindNoParams() { player.Play("FindNoParams"); var payment1 = Payments.Payment1; Payment created = await CreatePayment(payment1); PaginatedPayments found = await client.FindPaymentsAsync(); Assert.Contains(created, found.Payments); }
public async Task FindWithParams() { player.Play("FindWithParams"); var payment1 = Payments.Payment1; Payment created = await CreatePayment(payment1); PaginatedPayments found = await client.FindPaymentsAsync(new PaymentFindParameters { BeneficiaryId = created.BeneficiaryId, ConversionId = created.ConversionId, Order = "created_at", OrderAscDesc = FindParameters.OrderDirection.Desc, PerPage = 5 }); Assert.Contains(created, found.Payments); }