public IEnumerable <MedicineStockDTO> GetMedicineStock()
        {
            log.Info("Medicine Stock requested");
            var MedicineStockList = IMedicineStock.GetAll();

            log.Info("Medicine Stock Retrived");
            return(MedicineStockList.ToList());
        }
示例#2
0
        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);
        }
示例#3
0
        public IEnumerable <MedicineStockDTO> GetMedicineStock()
        {
            var MedicineStockList = IMedicineStock.GetAll();

            return(MedicineStockList.ToList());
        }
示例#4
0
        public void MedicineStockInfoTest_PassCase_Repository()
        {
            IEnumerable <MedicineStockDTO> result = repo.GetAll();

            Assert.IsNotNull(result);
        }