public ProductController(ICreateProduct createProduct, IGetProduct getProduct, IUpdateProduct updateProduct, IRemoveProduct removeProduct)
 {
     this.createProduct = createProduct;
     this.getProduct    = getProduct;
     this.updateProduct = updateProduct;
     this.removeProduct = removeProduct;
 }
 public ProductController(IGetProduct getProduct, ICreateProduct createProduct, IUpdateProduct updateProduct, IRemoveProduct removeProduct, IValidateProductPrice validateProductPrice, IConfirmProductPrice confirmProductPrice)
 {
     this.getProduct           = getProduct;
     this.createProduct        = createProduct;
     this.updateProduct        = updateProduct;
     this.removeProduct        = removeProduct;
     this.validateProductPrice = validateProductPrice;
     this.confirmProductPrice  = confirmProductPrice;
 }
Пример #3
0
        public GetProductResponse AssignProductInfo(string product, FunctionType type)
        {
            GetProductResponse response = new GetProductResponse();

            IGetProduct getProduct = GetProductRuleFactory.Create(type);

            response = getProduct.GetProduct(product);

            return(response);
        }
Пример #4
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;
 }
Пример #5
0
 public GetAllProductsHandler(IGetProduct getProduct, IMapper mapper)
 {
     _getProduct = getProduct;
     _mapper     = mapper;
 }
Пример #6
0
 public ProductController(IAddProductWithStock addProductWithStock, IGetProduct getProduct)
 {
     _addProductWithStock = addProductWithStock;
     _getProduct          = getProduct;
 }
Пример #7
0
 public GetProductByIdHandler(IGetProduct getProduct, IMapper mapper)
 {
     _getProduct = getProduct;
     _mapper     = mapper;
 }
Пример #8
0
 public ServicesManager(IGetProduct service)
 {
     getproduct = service;
 }