Пример #1
0
        public void GetPeople()
        {
            //Arrange
            var recentPeopleFilter = new DTO.RecentPersonFilter()
            {
                ContributedBy    = new string[] { fixtures.identityId.ToString() },
                ContributedAfter = DateTime.Now.AddYears(-1)
            };

            //Act
            var result = fixtures.recentQueryService.GetPeople(recentPeopleFilter);

            //Assert
            result.Should().NotBeEmpty();
            result.Count().Should().BeGreaterOrEqualTo(1);
        }
Пример #2
0
        public List <DTO.RecentPerson> GetPeople(DTO.RecentPersonFilter filter)
        {
            var query = ApplyFilter(filter, UnitOfWork.GetEntityQuery <RecentPerson>().OrderBy(v => v.SurrogateId));

            return(query.AsListOf <DTO.RecentPerson>());
        }