Example #1
0
        public void GetAll_NoSuppliers_ShouldReturnEmptyList()
        {
            context.Setup(m => m.Suppliers).Returns(new FakeDbSet <SqlSupplier>(new List <SqlSupplier>()).Object);
            var result = supplierDal.GetAll();

            Assert.IsEmpty(result);
        }
        public IDataResult <List <Supplier> > GetAll(Expression <Func <Supplier, bool> > filter = null)
        {
            var _getAll = _supplierDal.GetAll(filter);

            if (_getAll == null)
            {
                return(new ErrorDataResult <List <Supplier> >(SupplierMessages.RecordNotFound));
            }
            return(new SuccessDataResult <List <Supplier> >(_getAll, SupplierMessages.SuppliersListed));
        }
 public List <Supplier> GetAll(Expression <Func <Supplier, bool> > filter = null)
 {
     return(_supplierDal.GetAll(filter));
 }
 public IDataResult <List <Supplier> > GetAll()
 {
     return(new SuccessDataResult <List <Supplier> >(_supplierDal.GetAll(), Messages.AllSuppliersListed));
 }
Example #5
0
 public List <T_BD_SUPPLIER> GetAll()
 {
     return(supplierDal.GetAll());
 }
Example #6
0
 public IList <Supplier> GetAllSuppliers()
 {
     return(supplierDal.GetAll());
 }
 public IDataResult <List <Supplier> > GetAll()
 {
     return(new SuccessDataResult <List <Supplier> >(_supplierDal.GetAll()));
 }