예제 #1
0
        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);
        }
예제 #2
0
        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);
        }