Beispiel #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);
        }
 public IEnumerable <Pharmacy> GetAll()
 {
     return(pharmacyRepository.GetAll().Select(ph => ph.ToModel()));
 }
Beispiel #3
0
 public List <Pharmacy> GetAll() => _pharmacyRepository.GetAll();