Ejemplo n.º 1
0
 public GetCart()
 {
     _getCartItem        = AutoFacHelper.Resolve <IGetCartItem>();
     _getProduct         = AutoFacHelper.Resolve <IGetProducts>();
     _getCustomerAddress = AutoFacHelper.Resolve <IGetCustomerAddress>();
     _getPaymentOption   = AutoFacHelper.Resolve <IGetPaymentOption>();
 }
Ejemplo n.º 2
0
 public ProductService(IAddProduct addProduct = null, IGetProducts getProducts = null, IUpdateProduct updateProduct = null, IDeleteProduct deleteProduct = null)
 {
     _addProduct    = addProduct;
     _getProducts   = getProducts;
     _updateProduct = updateProduct;
     _deleteProduct = deleteProduct;
 }
Ejemplo n.º 3
0
 public AppInnit(IHealthCheck hc, IGetProducts gp, IGetProductions gpr, IStoreCatalogReadyService scrs, IGetProductChangedService gpcs, IGetProductionAreaChangedService gpacs)
 {
     _healthCheck                     = hc;
     _getProducts                     = gp;
     _getProductions                  = gpr;
     _catalogReadyMessage             = scrs;
     _getProductChangedService        = gpcs;
     _getProductionAreaChangedService = gpacs;
 }
Ejemplo n.º 4
0
        public HomeController()
        {
            _getProducts  = AutoFacHelper.Resolve <IGetProducts>();
            _getCart      = AutoFacHelper.Resolve <IGetCart>();
            _getCartItem  = AutoFacHelper.Resolve <IGetCartItem>();
            _saveCartItem = AutoFacHelper.Resolve <ISaveCartItem>();

            _createOrder     = AutoFacHelper.Resolve <ICreateOrder>();
            _checkoutManager = AutoFacHelper.Resolve <ICheckoutManager>();
        }
Ejemplo n.º 5
0
 public ProductController(
     IAddProduct addProduct,
     IGenerateInitialProducts generateInitialProducts,
     IGetProduct getProduct,
     IGetProducts getProducts,
     IDeleteProduct deleteProduct,
     IUpdateProduct updateProduct,
     IDeleteAllProducts deleteAllProduct,
     ISearchProduct searchProduct)
 {
     _addProduct = addProduct;
     _generateInitialProducts = generateInitialProducts;
     _getProduct        = getProduct;
     _getProducts       = getProducts;
     _deleteProduct     = deleteProduct;
     _updateProduct     = updateProduct;
     _deleteAllProducts = deleteAllProduct;
     _searchProduct     = searchProduct;
 }
Ejemplo n.º 6
0
 public AdminController()
 {
     _getOrders    = AutoFacHelper.Resolve <IGetOrders>();
     _getCustomers = AutoFacHelper.Resolve <IGetCustomer>();
     _getProducts  = AutoFacHelper.Resolve <IGetProducts>();
 }
Ejemplo n.º 7
0
 public InitializeDB()
 {
     _getProduct    = AutoFacHelper.Resolve <IGetProducts>();
     _configManager = AutoFacHelper.Resolve <IConfigManager>();
 }