public IEnumerable <MedicineStockDTO> GetMedicineStock() { log.Info("Medicine Stock requested"); var MedicineStockList = IMedicineStock.GetAll(); log.Info("Medicine Stock Retrived"); return(MedicineStockList.ToList()); }
public void MedicineStockInfoTest_FailCase_Repository() { medicineStock = null; _repo.Setup(m => m.GetAll()).Returns(medicineStock); repo = _repo.Object; List <MedicineStock> result = (List <MedicineStock>)repo.GetAll(); Assert.IsNull(result); }
public IEnumerable <MedicineStockDTO> GetMedicineStock() { var MedicineStockList = IMedicineStock.GetAll(); return(MedicineStockList.ToList()); }
public void MedicineStockInfoTest_PassCase_Repository() { IEnumerable <MedicineStockDTO> result = repo.GetAll(); Assert.IsNotNull(result); }