public async Task FindNoParams() { player.Play("FindNoParams"); var beneficiary1 = Beneficiaries.Beneficiary1; Beneficiary created = await client.CreateBeneficiaryAsync(beneficiary1); PaginatedBeneficiaries found = await client.FindBeneficiariesAsync(); Assert.Contains(created, found.Beneficiaries); }
public async Task FindWithParams() { player.Play("FindWithParams"); var beneficiary1 = Beneficiaries.Beneficiary1; Beneficiary created = await client.CreateBeneficiaryAsync(beneficiary1); PaginatedBeneficiaries found = await client.FindBeneficiariesAsync(new BeneficiaryFindParameters { Name = created.Name, Order = "created_at", OrderAscDesc = BeneficiaryFindParameters.OrderDirection.Desc, PerPage = 5 }); Assert.Contains(created, found.Beneficiaries); }