예제 #1
0
 public ProductManager(IContextContainer container)
     : base(container)
 {
     _productDAO   = new ProductDAO(container);
     _categoryDAO  = new CategoryDAO(container);
     _attributeDAO = new AttributeDAO(container);
 }
예제 #2
0
        public static List <Product> GetAllProducts()
        {
            IProductDAO pdr    = DAOFactory.GetProductDAO();
            var         result = pdr.GetAllProducts();

            return(result);
        }
예제 #3
0
 public ProductManager(IContextContainer container)
     : base(container)
 {
     _productDAO = new ProductDAO(container);
     _categoryDAO = new CategoryDAO(container);
     _attributeDAO = new AttributeDAO(container);
 }
예제 #4
0
 static DependencyResolver()
 {
     UserDAO      = new UserDbDAO();
     ProductDAO   = new ProductDbDAO();
     ModeratorDAO = new ModeratorDbDAO();
     ProducerDAO  = new ProducerDbDAO();
 }
        public StoreService()
        {
            // Register maps
            MappingConfig.RegisterMaps();

            // Register DAO's
            productDAO = new ProductDAO();
            userDAO    = new UserDAO();
        }
        static DependencyResolver()
        {
            userDAO    = new UserDAO();
            orderDAO   = new OrderDAO();
            productDAO = new ProductDAO();

            userBL    = new UserBL(userDAO);
            orderBL   = new OrderBL(orderDAO);
            productBL = new ProductBL(productDAO);
        }
예제 #7
0
 public OrderManager(IContextContainer container)
     : base(container)
 {
     _orderDAO = new OrderDAO(container);
     _productDAO = new ProductDAO(container);
     _bonusDAO = new BonusDAO(container);
     _cartDAO = new ShoppingCartDAO(container);
     _addressInfoDAO = new AddressInfoDAO(container);
     _customerDAO = new CustomerDAO(container);
 }
예제 #8
0
 public OrderManager(IContextContainer container)
     : base(container)
 {
     _orderDAO       = new OrderDAO(container);
     _productDAO     = new ProductDAO(container);
     _bonusDAO       = new BonusDAO(container);
     _cartDAO        = new ShoppingCartDAO(container);
     _addressInfoDAO = new AddressInfoDAO(container);
     _customerDAO    = new CustomerDAO(container);
 }
예제 #9
0
 public EditProducts(ICustomerDAO customerDAO, IProductDAO productDAO)
 {
     _customerDAO = customerDAO;
     _productDAO  = productDAO;
 }
 public StoreController(IProductDAO dao)
 {
     this.dao = dao;
 }
예제 #11
0
 public ItemController(IProductDAO dataAccessLayer)
 {
     dao = dataAccessLayer;
 }
예제 #12
0
 public ProductsPresenter(IProductsView view, IProductDAO productDAO, IOpenFileWrapper openFileWrapper)
 {
     this.view            = view;
     this.productDao      = productDAO;
     this.openFileWrapper = openFileWrapper;
 }
 public ProductService(IProductDAO productDAO)
 {
     _productDAO = productDAO;
 }
예제 #14
0
 public ProductBL(IProductDAO productDAO)
 {
     this.productDAO = productDAO;
 }
예제 #15
0
 public ProductsPresenter(IProductsView view, IProductDAO productDAO, IOpenFileWrapper openFileWrapper)
 {
     this.view = view;
     this.productDao = productDAO;
     this.openFileWrapper = openFileWrapper;
 }
예제 #16
0
 // default constructor
 // this still depends on a concrete implementation.
 // however, it is not as tightly-coupled a design as before
 public ProductOps()
 {
     dataAccessObj = new ProductDAO();
 }
예제 #17
0
 public StoreController(IProductDAO productDAO)
 {
     this.productDAO = productDAO;
 }
예제 #18
0
 public ProductService(IProductDAO dao, IMapper mapper) : base(dao, mapper)
 {
     _productDao = dao;
 }
예제 #19
0
 public ProductController(IProductDAO _productDAO)
 {
     productDAO = _productDAO;
 }
예제 #20
0
 public ProductBLL(IProductDAO DO)
 {
     this.DO = DO;
 }
예제 #21
0
 // test constructor
 public ProductOps(IProductDAO dataAccessObj)
 {
     this.dataAccessObj = dataAccessObj;
 }
 public ShoppingCartManager(IContextContainer container)
     : base(container)
 {
     _shoppingCartDAO = new ShoppingCartDAO(container);
     _productDAO = new ProductDAO(container);
 }
 public EditShoppingCart(IProductDAO productDAO)
 {
     _productDAO = productDAO;
 }
예제 #24
0
 public ProductService(IProductDAO dao, ICache cache) : base(dao, cache, _CACHE_PROP)
 {
     _db = dao;
 }
 public StoreController(IProductDAO dao, IHttpContextAccessor httpContext) : base(httpContext)
 {
     this.dao = dao;
 }
예제 #26
0
 public ProductLogic(IProductDAO productDAO)
 {
     _productDAO = productDAO;
 }
예제 #27
0
 public StoreController(IProductDAO db, IHttpContextAccessor httpContext) : base(httpContext)
 {
     _db = db;
 }
예제 #28
0
 public ProductsController(IProductDAO productDAO)
 {
     this.productDAO = productDAO;
 }
 public StoreController(IProductDAO productDao)
 {
     this.productDao = productDao;
 }
예제 #30
0
 public ShoppingCartManager(IContextContainer container)
     : base(container)
 {
     _shoppingCartDAO = new ShoppingCartDAO(container);
     _productDAO      = new ProductDAO(container);
 }
예제 #31
0
 public ProductService()
 {
     _productDAO = new ProductDAO();
 }