Exemple #1
0
 public ProductQuery(ShopContext shopContext, InventoryContext inventoryContext,
                     DiscountContext discountContext, CommentContext commentContext, IProductApplication productApplication)
 {
     _shopContext        = shopContext;
     _inventoryContext   = inventoryContext;
     _discountContext    = discountContext;
     _commentContext     = commentContext;
     _productApplication = productApplication;
 }
 public ProductNotificationController(
     ILogger <ProductNotificationController> logger,
     IProductRepository productRepository,
     IProductApplication productApplication
     )
 {
     this._logger             = logger;
     this._productRepository  = productRepository;
     this._productApplication = productApplication;
 }
        public ProductController(IProductApplication iProductApplication)
        {
            _iProductApplication = iProductApplication;
            var config = new MapperConfiguration(cfg =>
            {
                cfg.CreateMap <ProductModel, Product>();
                cfg.CreateMap <InventoryModel, Inventory>();
                cfg.CreateMap <WarehouseModel, Warehouse>();
            });

            iMapper = config.CreateMapper();
        }
Exemple #4
0
 public IndexModel(IProductApplication productApplication)
 {
     _productApplication = productApplication;
 }
Exemple #5
0
 public ProductController(IProductApplication productApplication) =>
 this.productApplication = productApplication;
 public ProductController(EShopDBContext context, IProductApplication productApplication)
 {
     _productApplication = productApplication;
     _context            = context;
 }
 public ProductsController(IProductApplication productApplication)
 {
     _productApplication = productApplication;
 }
Exemple #8
0
 public ProductDetailsModel(IProductQuery productQuery, ICommentApplication commentApplication, IProductApplication productApplication)
 {
     _productQuery       = productQuery;
     _commentApplication = commentApplication;
     _productApplication = productApplication;
 }
Exemple #9
0
 public IndexModel(IProductApplication ProductApplication, IInventoryApplication inventoryApplication)
 {
     _productApplication   = ProductApplication;
     _inventoryApplication = inventoryApplication;
 }
 public IndexModel(IProductApplication productApplication,
                   IProductPictureApplication productPictureApplication)
 {
     _productApplication        = productApplication;
     _productPictureApplication = productPictureApplication;
 }
 public ProductController(IDBApplicationBase <Product> baseApplication, IProductApplication productApplication) : base(baseApplication)
 {
     _productApplication = productApplication;
 }
Exemple #12
0
 public IndexModel(IInventoryApplication inventoryApplication, IProductApplication productApplication)
 {
     _inventoryApplication = inventoryApplication;
     _productApplication   = productApplication;
 }
 public IndexModel(IProductApplication productApplication, IProductCategoryApplication categoryApplication)
 {
     _productApplication  = productApplication;
     _categoryApplication = categoryApplication;
 }
Exemple #14
0
 public IndexModel(ICommentApplication commentApplication, IProductApplication productApplication)
 {
     _commentApplication = commentApplication;
     _productApplication = productApplication;
 }
 public ProductController(IUnitOfWork uow, IProductApplication productApplication)
 {
     _uow = uow;
     _productApplication = productApplication;
 }
Exemple #16
0
 public EditModel(IProductApplication productApplication, IProductCategoryApplication productCategoryApplication)
 {
     _productApplication         = productApplication;
     _productCategoryApplication = productCategoryApplication;
 }
Exemple #17
0
 public ProductController(INotificator notificator, IMapper mapper, IProductApplication iProductApplication) : base(notificator)
 {
     _mapper = mapper;
     _iProductApplication = iProductApplication;
 }
Exemple #18
0
 public IndexModel(IProductApplication productApplication, IColleagueDiscountApplication colleagueDiscountApplication)
 {
     _productApplication           = productApplication;
     _colleagueDiscountApplication = colleagueDiscountApplication;
 }
 public ProductService(ILogger <ProductService> logger, IProductApplication productApplication)
 {
     _logger             = logger;
     _productApplication = productApplication;
 }
Exemple #20
0
 public IndexModel(IProductApplication ProductApplication, ICustomerDiscountApplication customerDiscountApplication)
 {
     _productApplication          = ProductApplication;
     _customerDiscountApplication = customerDiscountApplication;
 }
 public ProductController(
     IProductApplication application) : base(application)
 {
     _productApplication = application;
 }