Exemplo n.º 1
0
 public SalesOrderServices(IShoppingCartBusiness shoppingCartBusiness, IShoppingCartItemBusiness shoppingCartItemBusiness, ISalesOrderBusiness salesOrderBusiness, IProductBusiness productBusiness)
 {
     _shoppingCartItemBusiness = shoppingCartItemBusiness;
     _shoppingCartBusiness     = shoppingCartBusiness;
     _salesOrderBusiness       = salesOrderBusiness;
     _productBusiness          = productBusiness;
 }
Exemplo n.º 2
0
 public ProductController(ICategoriesBusiness categoryBusiness, ICommonBusiness commonBusiness, IProductBusiness productBusiness, IAttributesBusiness attributeBusiness)
 {
     _categoryBusiness  = categoryBusiness;
     _commonBusiness    = commonBusiness;
     _productBusiness   = productBusiness;
     _attributeBusiness = attributeBusiness;
 }
Exemplo n.º 3
0
 public ImageController(
     IImageBusiness _imageBusiness,
     IProductBusiness _productBusiness)
 {
     imageBusiness   = _imageBusiness;
     productBusiness = _productBusiness;
 }
Exemplo n.º 4
0
 public Integration()
 {
     //this.coreBusiness = AutofacHostFactory.Container.Resolve<ICoreBusiness>();
     //this.categoryBusiness = AutofacHostFactory.Container.Resolve<ICategoryBusiness>();
     //this.memberBusiness = AutofacHostFactory.Container.Resolve<IMemberBusiness>();
     this.productBusiness = AutofacHostFactory.Container.Resolve <IProductBusiness>();
 }
Exemplo n.º 5
0
 public CouponBusinessTests()
 {
     _campaignBusiness = new CampaignBusiness(new CampaignData());
     _couponBusiness   = new CouponBusiness(new CouponData());
     _productBusiness  = new ProductBusiness(new ProductData());
     _cartBusiness     = new CartBusiness(new CampaignBusiness(new CampaignData()), new CouponBusiness(new CouponData()));
 }
Exemplo n.º 6
0
 public QRCodeBusiness(IBrandBusiness brandBusiness, IProductBusiness productBusiness, ICountryBusiness countryBusiness, IUrlBusiness urlBusiness)
 {
     _brandBusiness   = brandBusiness;
     _productBusiness = productBusiness;
     _countryBusiness = countryBusiness;
     _urlBusiness     = urlBusiness;
 }
 public LaptopController(IEnumerable <IProductBusiness> productBL,
                         ILogger <ProductBaseController <ProductLaptop> > logger)
     : base(productBL.First(o => o.GetType() == typeof(LaptopProductBusiness)), logger)
 {
     _productBL = productBL.First(o => o.GetType() == typeof(LaptopProductBusiness));
     _logger    = logger;
 }
Exemplo n.º 8
0
 public ProductsController(IProductBusiness productBusiness, IMasterBusiness masterBusiness, ICommonBusiness commonBusiness, IAttributeSetBusiness attributeSetBusiness)
 {
     _productBusiness      = productBusiness;
     _masterBusiness       = masterBusiness;
     _commonBusiness       = commonBusiness;
     _attributeSetBusiness = attributeSetBusiness;
 }
Exemplo n.º 9
0
 public ProductsController(
     IProductBusiness productBusiness,
     ILogger <ProductsController> logger
     )
 {
     this._productBusiness = productBusiness;
     this._logger          = logger;
 }
 public HomeController(ISupplierBusiness supplier, IProductBusiness product, IOrdersBusiness order, IUserBusiness user, IPurchaseBusiness purchase)
 {
     this._supplier = supplier;
     this._product  = product;
     this._order    = order;
     this._user     = user;
     this._purchase = purchase;
 }
Exemplo n.º 11
0
 public HomeController(IProductCategoryBusiness productCategoryBusiness, IProductBusiness productBusiness, IPromotionBusiness promotionBusiness, INewsBusiness newsBusiness, IBannerBusiness bannerBusiness)
 {
     this._productCategory   = productCategoryBusiness;
     this._productBusiness   = productBusiness;
     this._promotionBusiness = promotionBusiness;
     this._newsBusiness      = newsBusiness;
     this._bannerBusiness    = bannerBusiness;
 }
Exemplo n.º 12
0
        public ProductService()
        {
            var connection = Configuration.GetConnectionString("DatabaseConnection");
            var options    = new DbContextOptionsBuilder <OnlineRetailShopEntity>().UseSqlServer(connection).Options;

            this.dbContext      = new OnlineRetailShopEntity(options);
            this.productService = new ProductBusiness(dbContext);
        }
Exemplo n.º 13
0
 public ProductController(IProductBusiness productBusiness, IStaffBusiness staffBusiness, IMemberReceiptInfoBusiness memberReceiptInfo, IOrderBusiness orderBusiness, IOrderDetailBusiness orderDetailBusiness, IMemberBusiness memberBusiness)
 {
     this._productBusiness     = productBusiness;
     this._staffBusiness       = staffBusiness;
     this._memberReceiptInfo   = memberReceiptInfo;
     this._orderBusiness       = orderBusiness;
     this._orderDetailBusiness = orderDetailBusiness;
     this._memberBusiness      = memberBusiness;
 }
Exemplo n.º 14
0
 public ProductModelController(IProductModelBusiness productModelBusiness, IProductBusiness productBusiness,
                               IFileUploadBusiness fileUploadBusiness, SecurityFilter.ToolBarAccess tool)//, IUserBusiness userBusiness
 {
     _productModelBusiness = productModelBusiness;
     _productBusiness      = productBusiness;
     //_userBusiness = userBusiness;
     _fileUploadBusiness = fileUploadBusiness;
     _tool = tool;
 }
Exemplo n.º 15
0
 //IUserBusiness _userBusiness;
 public ProductController(IProductCategoryBusiness productCategoryBusiness, IProductBusiness productBusiness,
                          ICompanyBusiness companyBusiness, SecurityFilter.ToolBarAccess tool)//, IUserBusiness userBusiness)
 {
     _productCategoryBusiness = productCategoryBusiness;
     _productBusiness         = productBusiness;
     _companyBusiness         = companyBusiness;
     _tool = tool;
     //_userBusiness = userBusiness;
 }
        public AddProductUserControl()
        {
            _productBusiness  = new ProductBusiness();
            _categoryBusiness = new CategoryBusiness();
            _supplierBusiness = new SupplierBusiness();
            productViewModel  = new ProductViewModel();

            InitializeComponent();
            InitializeData();
        }
        public EditProductUserControl(Product product)
        {
            _productBusiness      = new ProductBusiness();
            _categoryBusiness     = new CategoryBusiness();
            _supplierBusiness     = new SupplierBusiness();
            this.productViewModel = new ProductViewModel(product);

            InitializeComponent();
            InitializeData();
        }
 public DesktopController(IEnumerable <IProductBusiness> productBL,
                          ILogger <ProductBaseController <ProductDesktop> > logger)
     : base(productBL.First(o => o.GetType() == typeof(DesktopProductBusiness)), logger)
 {
     //var dependencyArray = productBL.GetEnumerator().
     //IEnumerable<IProductBusiness> productBL
     //var services = serviceProvider.GetServices<IProductBusiness>();
     _productBL = productBL.First(o => o.GetType() == typeof(DesktopProductBusiness));
     _logger    = logger;
 }
Exemplo n.º 19
0
 public OrderController(IProductBusiness productBusiness, IOrderBusiness orderBusiness, ICommonBusiness commonBusiness, IMasterBusiness masterBusiness, IMailBusiness mailBusiness, IInvoiceBusiness invoiceBusiness, IShipmentBusiness shipmentBusiness)
 {
     _orderBusiness    = orderBusiness;
     _commonBusiness   = commonBusiness;
     _masterBusiness   = masterBusiness;
     _mailBusiness     = mailBusiness;
     _productBusiness  = productBusiness;
     _invoiceBusiness  = invoiceBusiness;
     _shipmentBusiness = shipmentBusiness;
 }
Exemplo n.º 20
0
 public ProductController(
     IConfiguration _config,
     IScopeContext _scopeContext,
     IProductBusiness _busProduct,
     IProductUnitProductBusiness _busProductUnitProduct)
 {
     config                = _config;
     context               = _scopeContext;
     busProduct            = _busProduct;
     busProductUnitProduct = _busProductUnitProduct;
 }
        public void SetUp()
        {
            _listagemDeProdutosEntity = new List<Product>
                {
                    new Product { Name = "TDD desenvolvimento guiado por testes", Author = "Kent Beck", Publishing = "Bookman", Year = 2010, Category = Categories.LiteraturaEstrangeira, Stock = 0, Price = 50.0M, Photo = "" }
                };

            _repository = new Mock<IProductRepository>();
            _repository.Setup(x => x.RecuperarTodosProdutos()).Returns(_listagemDeProdutosEntity);
            _business = new ProductBusiness(_repository.Object);
        }
Exemplo n.º 22
0
 public HomeController(ISliderBusiness sliderBusiness,
                       IProductBusiness productBusiness,
                       INewsBusiness newsBusiness,
                       ISoftwareBusiness softwareBusiness,
                       IBookBusiness bookBusiness)
 {
     _sliderBusiness   = sliderBusiness;
     _productBusiness  = productBusiness;
     _newsBusiness     = newsBusiness;
     _softwareBusiness = softwareBusiness;
     _bookBusiness     = bookBusiness;
 }
Exemplo n.º 23
0
 public ProductsController(IProductBusiness productBusiness,
                           ICategoryBusiness categoryBusiness,
                           IProductCategoryBusiness productCategoryBusiness,
                           ITagBusiness tagBusiness,
                           IGalleryBusiness galleryBusiness)
 {
     _productBusiness         = productBusiness;
     _categoryBusiness        = categoryBusiness;
     _productCategoryBusiness = productCategoryBusiness;
     _tagBusiness             = tagBusiness;
     _galleryBusiness         = galleryBusiness;
 }
Exemplo n.º 24
0
 public HomeController(ICartBusiness cartBusiness,
                       ICategoryBusiness categoryBusiness,
                       IProductBusiness productBusiness,
                       ICampaignBusiness campaignBusiness,
                       ICouponBusiness couponBusiness,
                       IDeliveryBusiness deliveryBusiness)
 {
     _cartBusiness     = cartBusiness;
     _categoryBusiness = categoryBusiness;
     _productBusiness  = productBusiness;
     _campaignBusiness = campaignBusiness;
     _couponBusiness   = couponBusiness;
     _deliveryBusines  = deliveryBusiness;
 }
Exemplo n.º 25
0
 public ExcelExportController(IEnquiryBusiness enquiryBusiness,
                              IEstimateBusiness estimateBusiness, IQuotationBusiness quotationBusiness,
                              ISaleOrderBusiness saleOrderBusiness, IProductionOrderBusiness productionOrderBusiness,
                              IProductionQCBusiness productionQCBusiness, ISaleInvoiceBusiness saleInvoiceBusiness,
                              IServiceCallBusiness serviceCallBusiness, IDeliveryChallanBusiness deliveryChallanBusiness,
                              IProformaInvoiceBusiness proformaInvoiceBusiness, IProductModelBusiness productModelBusiness,
                              IProductBusiness productBusiness, ICustomerBusiness customerBusiness)
 {
     _enquiryBusiness         = enquiryBusiness;
     _estimateBusiness        = estimateBusiness;
     _quotationBusiness       = quotationBusiness;
     _saleOrderBusiness       = saleOrderBusiness;
     _productionOrderBusiness = productionOrderBusiness;
     _productionQCBusiness    = productionQCBusiness;
     _saleInvoiceBusiness     = saleInvoiceBusiness;
     _serviceCallBusiness     = serviceCallBusiness;
     _deliveryChallanBusiness = deliveryChallanBusiness;
     _proformaInvoiceBusiness = proformaInvoiceBusiness;
     _productModelBusiness    = productModelBusiness;
     _productBusiness         = productBusiness;
     _customerBusiness        = customerBusiness;
 }
Exemplo n.º 26
0
 public CatalogController(IProductBusiness productBusiness, ILogger <CatalogController> logger)
 {
     _productBusiness = productBusiness ?? throw new ArgumentNullException(nameof(productBusiness));
     _logger          = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Exemplo n.º 27
0
 //inject the product business interface to access the methods of it.
 public ProductController(IProductBusiness _ProductBusiness)
 {
     //initialize the product business object
     ProductBusiness = _ProductBusiness;
 }
Exemplo n.º 28
0
 public ProductsController(IProductBusiness productBusiness)
 {
     _productBusiness = productBusiness;
 }
Exemplo n.º 29
0
 public ProductController(IProductBusiness product)
 {
     _productBusiness = product;
 }
Exemplo n.º 30
0
 /// <summary>
 /// 产品构造函数注入服务
 /// </summary>
 /// <param name="productBusiness"></param>
 public ProductController(IProductBusiness productBusiness)
 {
     iProductBusiness = productBusiness;
 }
Exemplo n.º 31
0
 public OrderBusiness(IOrderRepository res, IProductBusiness rsp)
 {
     _res = res;
     _rsp = rsp;
 }
Exemplo n.º 32
0
 public ProductController(IProductBusiness productBusiness)
 {
     _business = productBusiness;
 }
Exemplo n.º 33
0
 public AdminController(IAccountBusiness business)
 {
     _business = business;
     _productBusiness = DependencyResolver.Current.GetService<IProductBusiness>();
 }
Exemplo n.º 34
0
 public AdminController(IAccountBusiness business, IProductBusiness productBusiness)
 {
     _business = business;
     _productBusiness = productBusiness;
 }
Exemplo n.º 35
0
 public HomeController(IProductBusiness business)
 {
     _business = business;
 }
        public void SetUp()
        {
            _livroTDD = new Product
            {
                ProductId = 1,
                Name = "TDD desenvolvimento guiado por testes",
                Author = "Kent Beck",
                Publishing = "Bookman",
                Year = 2010,
                Category = Categories.LiteraturaEstrangeira,
                Stock = 0,
                Price = 50.0M,
                Photo = ""
            };

            _livroRomance = new Product
            {
                ProductId = 2,
                Name = "O Amor",
                Author = "Escritora Romance",
                Publishing = "Bookman",
                Year = 2007,
                Category = Categories.LiteraturaBrasileira,
                Stock = 0,
                Price = 30.0M,
                Photo = ""
            };

            _livroFiccao = new Product
            {
                ProductId = 3,
                Name = "O Senhor Dos Aneis",
                Author = "Tolken J.R.",
                Publishing = "Abril",
                Year = 2005,
                Category = Categories.LiteraturaEstrangeira,
                Stock = 0,
                Price = 100.0M,
                Photo = ""
            };

            _repository = new Mock<IProductRepository>();
            _repository.Setup(x => x.RecuperarInformacoesDoLivro(1)).Returns(_livroTDD);
            _repository.Setup(x => x.RecuperarInformacoesDoLivro(2)).Returns(_livroRomance);
            _repository.Setup(x => x.RecuperarInformacoesDoLivro(3)).Returns(_livroFiccao);
            _business = new ProductBusiness(_repository.Object);
        }
Exemplo n.º 37
0
 public ProductController(IProductBusiness pBusiness)
 {
     this.pBusiness = pBusiness;
 }