Example #1
0
        public void Get_all_returns_data()
        {
            actionAndBenefitsRepository.GetAll().Returns(this.GetListOfActionAndBenefits());

            List <IdentifiableDTO <ActionAndBenefitsDTO> > returnedList = actionAndBenefitsService.GetAll().ToList();

            Assert.Equal(2, returnedList.Count);
        }
 public IEnumerable <IdentifiableDTO <ActionAndBenefitsDTO> > GetAll()
 {
     return(_actionAndBenefitsRepository.GetAll().Select(c => CreateDTOFromActionAndBenefits(c)));
 }