public async Task Should_Get_List_Of_Clients()
        {
            //Act
            var result = await _clientAppService.GetListAsync(new PagedAndSortedResultRequestDto());

            //Assert
            result.TotalCount.ShouldBeGreaterThan(0);
            result.Items.ShouldContain(x => x.FirstName == "Test");
            result.Items.ShouldContain(x => x.LastName == "Client");
        }
示例#2
0
 public virtual Task <PagedResultDto <ClientDto> > GetListAsync(PagedAndSortedResultRequestDto input)
 {
     return(_clientAppService.GetListAsync(input));
 }
        public async Task Should_Get_List_Of_Clients()
        {
            var result = await _clientAppService.GetListAsync(new PagedAndSortedResultRequestDto());

            result.TotalCount.ShouldBe(3);
        }