Пример #1
0
        public void Get_all_returns_data()
        {
            pharmacyRepository.GetAll().Returns(this.GetListOfPharmacy());

            List <IdentifiableDTO <PharmacyDTO> > returnedList = pharmacyService.GetAll().ToList();

            Assert.Equal(2, returnedList.Count);
        }
Пример #2
0
 public IEnumerable <Pharmacy> GetAll()
 {
     return(pharmacyRepository.GetAll().Select(ph => ph.ToModel()));
 }
Пример #3
0
 public List <Pharmacy> GetAll() => _pharmacyRepository.GetAll();