Ejemplo n.º 1
0
        public PosBll(IConfigurationBll configurationBll, IPosDal posDal)
        {
            if (configurationBll == null)
            {
                throw new ArgumentNullException("configurationBll");
            }
            if (posDal == null)
            {
                throw new ArgumentNullException("posDal");
            }

            _configurationBll = configurationBll;
            _posDal           = posDal;
        }
Ejemplo n.º 2
0
        public ProductsBll(GiftValidationBll giftValidationBll, ISecurityBll securityBll, IProductsDal productsDal, IPosDal posDal)
        {
            if (giftValidationBll == null)
            {
                throw new ArgumentNullException("validationBll");
            }
            if (productsDal == null)
            {
                throw new ArgumentNullException("productsDal");
            }
            if (posDal == null)
            {
                throw new ArgumentNullException("posDal");
            }
            if (securityBll == null)
            {
                throw new ArgumentNullException("securityBll");
            }

            _giftValidationBll = giftValidationBll;
            _productsDal       = productsDal;
            _posDal            = posDal;
            _securityBll       = securityBll;
        }