Beispiel #1
0
        public void StockRepository_InValidInput_ReturnsNull()
        {
            medicineStock = null;
            _repository.Setup(m => m.GetStockDetails()).Returns(medicineStock);
            repository = _repository.Object;
            List <MedicineStock> result = (List <MedicineStock>)repository.GetStockDetails();

            Assert.IsNull(result);
        }
Beispiel #2
0
 public IEnumerable <MedicineStock> GetStockDetails()
 {
     _logger.Info("Calling MedicineStockRepository");
     return(_repository.GetStockDetails());
 }