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())); }
public List <Pharmacy> GetAll() => _pharmacyRepository.GetAll();