Пример #1
0
 public ProductController(IProductRepository productRepository, IBillRepository billRepository, IConfiguration configuration, IProductCategoryRepository productCategoryRepository)
 {
     _productRepository         = productRepository;
     _billRepository            = billRepository;
     _configuration             = configuration;
     _productCategoryRepository = productCategoryRepository;
 }
Пример #2
0
 public ProductService(IProductRepository repository, IUnitOfWork unitOfWork, IMapper mapper, IProductCategoryRepository productCategoryRepository)
 {
     _repository = repository;
     _unitOfWork = unitOfWork;
     _mapper     = mapper;
     _productCategoryRepository = productCategoryRepository;
 }
Пример #3
0
 public ProductControllerTests(ProductFixture productFixture, ProductRepositoryFixture productRepositoryFixture, ProductCategoryRepositoryFixture productCategoryRepositoryFixture)
 {
     _repository = productRepositoryFixture.Repository;
     _productCategoryRepository = productCategoryRepositoryFixture.Repository;
     _logger         = new StubLogger <ProductsController>();
     _categoryLogger = new StubLogger <ProductCategoriesController>();
 }
Пример #4
0
 public ProductService(IProductRepository productRepository, IProductCategoryRepository productCategoryRepository, ISizeRepository sizeRepository, UnitOfWork unitOfWork)
 {
     this._productRepository         = productRepository;
     this._productCategoryRepository = productCategoryRepository;
     this._sizeRepository            = sizeRepository;
     this._unitOfWork = unitOfWork;
 }
Пример #5
0
 public ProductCategoryService(
     IProductCategoryRepository productCategoryRepository,
     IUnitOfWork unitOfWork)
 {
     this.productCategoryRepository = productCategoryRepository;
     this.unitOfWork = unitOfWork;
 }
Пример #6
0
 public ProductCategoryService(IProductCategoryRepository productCategory, IUnitOfWork unitOfWork
                               , IMapper mapper)
 {
     _productCategoryRepository = productCategory;
     _unitOfWork = unitOfWork;
     _mapper     = mapper;
 }
 public ProductApplication(IProductRepository productRepository, IFileUploader fileUploader,
                           IProductCategoryRepository productCategoryRepository)
 {
     _productRepository         = productRepository;
     _fileUploader              = fileUploader;
     _productCategoryRepository = productCategoryRepository;
 }
Пример #8
0
 public ProductBusiness(IProductRepository productRepository, IProductDbContext dbContext, IProductCategoryRepository productCategoryRepository, IProductImageRepository productImageRepository)
 {
     _productRepository         = productRepository;
     _dbContext                 = dbContext;
     _productCategoryRepository = productCategoryRepository;
     _productImageRepository    = productImageRepository;
 }
Пример #9
0
 public ProductCategoryService(IProductCategoryRepository productCategoryRepository, IUnitOfWork uow
                               , IEmployeeRepository employeeRepository)
 {
     _productCategoryRepository = productCategoryRepository;
     _uow = uow;
     _employeeRepository = employeeRepository;
 }
Пример #10
0
 public ProductCategoryService(IProductCategoryRepository productCategoryRepository,
                               IUnitOfWork unitOfWork, IProductRepository productRepository)
 {
     _productCategoryRepository = productCategoryRepository;
     _unitOfWork        = unitOfWork;
     _productRepository = productRepository;
 }
 public ProductCategoryRepositoryTests()
 {
     _guid                = Guid.NewGuid();
     _productCategory     = new ProductCategory(_guid, "");
     _mockMongoRepository = new Mock <IMongoRepository <ProductCategory> >();
     _repository          = new ProductCategoryRepository(_mockMongoRepository.Object);
 }
 public CouponCodeValidator(ICouponCodeRepository couponCodeRepository, IProductCategoryRepository productCategoryRepository, IProductRepository productRepository, ICustomerRepository customerRepository)
 {
     _couponCodeRepository      = couponCodeRepository ?? throw new ArgumentNullException(nameof(couponCodeRepository));
     _productCategoryRepository = productCategoryRepository ?? throw new ArgumentNullException(nameof(productCategoryRepository));
     _productRepository         = productRepository ?? throw new ArgumentNullException(nameof(productRepository));
     _customerRepository        = customerRepository ?? throw new ArgumentNullException(nameof(customerRepository));
 }
 public Handler(IProductRepository productRepository, ISearchEngine searchEngine, IProductCategoryRepository productCategoryRepository, IBrandRepository brandRepository)
 {
     _productRepository         = productRepository;
     _searchEngine              = searchEngine;
     _productCategoryRepository = productCategoryRepository;
     _brandRepository           = brandRepository;
 }
Пример #14
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheManager">Cache manager</param>
 /// <param name="categoryRepository">Category repository</param>
 /// <param name="productCategoryRepository">ProductCategory repository</param>
 /// <param name="productRepository">Product repository</param>
 /// <param name="aclRepository">ACL record repository</param>
 /// <param name="storeMappingRepository">Store mapping repository</param>
 /// <param name="workContext">Work context</param>
 /// <param name="storeContext">Store context</param>
 /// <param name="eventPublisher">Event publisher</param>
 /// <param name="storeMappingService">Store mapping service</param>
 /// <param name="aclService">ACL service</param>
 /// <param name="catalogSettings">Catalog settings</param>
 public CategoryDomainService(ICacheManager cacheManager,
                              ICategoryRepository categoryRepository,
                              IProductCategoryRepository productCategoryRepository,
                              IProductRepository productRepository,
                              //IRepository<AclRecord> aclRepository,
                              IStoreMappingRepository storeMappingRepository,
                              //IWorkContext workContext,
                              IStoreContext storeContext,
                              //IEventPublisher eventPublisher,
                              StoreMappingDomainService storeMappingService,
                              //IAclService aclService,
                              SettingDomainService settingDomainService)
 {
     this._cacheManager              = cacheManager;
     this._categoryRepository        = categoryRepository;
     this._productCategoryRepository = productCategoryRepository;
     this._productRepository         = productRepository;
     //this._aclRepository = aclRepository;
     this._storeMappingRepository = storeMappingRepository;
     //this._workContext = workContext;
     this._storeContext = storeContext;
     //this._eventPublisher = eventPublisher;
     this._storeMappingService = storeMappingService;
     //this._aclService = aclService;
     this._settingDomainService = settingDomainService;
 }
 public GetProductCategoryQueryHandler(
     IProductCategoryRepository categoryRepository,
     IMapper mapper)
 {
     _categoryRepository = categoryRepository;
     _mapper             = mapper;
 }
Пример #16
0
 public ProductController()
 {
     _commonRepository             = new commonRepository();
     _productCategoryRepository    = new ProductCategoryRepository();
     _productSubCategoryRepository = new ProductSubCategoryRepository();
     _productRepository            = new ProductRepository();
 }
Пример #17
0
 public ProductService(IProductRepository ProductsRepository, IProductCategoryRepository productCategoryRepository, IUnitOfWork unitOfWork, IProductSampleRepository productSampleRepository, ISampleRepository sampleRepository)
 {
     this._productsRepository = ProductsRepository;
     this._productCategoryRepository = productCategoryRepository;
     this._productSampleRepository = productSampleRepository;
     this._sampleRepository = sampleRepository;
     this.unitOfWork = unitOfWork;
 }
 public ProductQueryService(IProductRepository productRepository, IProductCategoryRepository productCategoryRepository,
                            IProductCategoryDiscountRepository productCategoryDiscountRepository, IMapper mapper)
 {
     this.productRepository                 = productRepository;
     this.productCategoryRepository         = productCategoryRepository;
     this.productCategoryDiscountRepository = productCategoryDiscountRepository;
     this.mapper = mapper;
 }
 public ProductCategoryDiscountCommandService(IProductCategoryDiscountRepository productCategoryDiscountRepository,
                                              IProductCategoryRepository productCategoryRepository,
                                              IDiscountCategoryRepository discountCategoryRepository)
 {
     this.productCategoryDiscountRepository = productCategoryDiscountRepository;
     this.productCategoryRepository         = productCategoryRepository;
     this.discountCategoryRepository        = discountCategoryRepository;
 }
 public ProductCategoryService(IProductCategoryRepository productCategoryRepository, ISupplierService supplierService,
                               IExcelService <ProductCategoryResponseModel> excelService, INotificationService notificationService)
 {
     _productCategoryRepository = productCategoryRepository;
     _supplierService           = supplierService;
     _excelService        = excelService;
     _notificationService = notificationService;
 }
Пример #21
0
 /// <summary>
 /// Injecting repositories
 /// </summary>
 public ProductService(FileManager fileManager, IProductRepository productRepository, IMapper mapper, IProductCategoryRepository productCategoryRepository, ICategoryRepository categoryRepository)
 {
     _fileManager               = fileManager;
     _productRepository         = productRepository;
     _mapper                    = mapper;
     _productCategoryRepository = productCategoryRepository;
     _categoryRepository        = categoryRepository;
 }
Пример #22
0
 public AdminController(IPackageRepository packageRepository, IProductBrandRepository _productBrandRepository, IProductCategoryRepository _productCategoryRepository, IProductRepository _productRepository, IAuctionRepository _auctionRepository)
 {
     _packageRepository        = packageRepository;
     productBrandRepository    = _productBrandRepository;
     productCategoryRepository = _productCategoryRepository;
     productRepository         = _productRepository;
     auctionRepository         = _auctionRepository;
 }
Пример #23
0
 public ProductCategoryRepositoryService(IProductCategoryRepository productCategoryRepository)
 {
     if (productCategoryRepository == null)
     {
         throw new ArgumentNullException(nameof(productCategoryRepository));
     }
     _productCategoryRepository = productCategoryRepository;
 }
Пример #24
0
 public ProductService(IProductRepository productRepository,
                       IProductCategoryRepository productCategoryRepository, IUnitOfWork uow
                       , IEmployeeRepository employeeRepository)
     : this(productRepository, uow)
 {
     this._productCategoryRepository = productCategoryRepository;
     _employeeRepository             = employeeRepository;
 }
 public ProductModelService(IProductModelRepository productModelRepository,
                            IProductCategoryRepository productCategoryRepository,
                            IProductMetricRepository productMetricRepository)
 {
     _productModelRepository    = productModelRepository;
     _productCategoryRepository = productCategoryRepository;
     _productMetricRepository   = productMetricRepository;
 }
 public ProductCategoryService(IProductCategoryRepository productCategoryRepository,
                               IUnitOfWork unitOfWork, IProductRepository productRepository, IConfigurationProvider mapConfig)
 {
     _productCategoryRepository = productCategoryRepository;
     _unitOfWork        = unitOfWork;
     _productRepository = productRepository;
     _mapConfig         = mapConfig;
 }
Пример #27
0
 public StoreUnitOfWork(string connectionString, string migrationAssemblyName)
     : base(connectionString, migrationAssemblyName)
 {
     CategoryRepository        = new CategoryRepository(_dbContext);
     ProductFeatureRepository  = new ProductFeatureRepository(_dbContext);
     ProductRepository         = new ProductRepository(_dbContext);
     ProductCategoryRepository = new ProductCategoryRepository(_dbContext);
 }
Пример #28
0
 public ProductCategoryUpdatedDomainEventHandler(ISearchEngine searchEngine, IMapper mapper, IProductCategoryRepository productCategoryRepository, ILogger <ProductCategoryUpdatedDomainEventHandler> logger, ICurrentUserService currentUserService)
 {
     _searchEngine = searchEngine;
     _productCategoryRepository = productCategoryRepository;
     _mapper             = mapper;
     _logger             = logger;
     _currentUserService = currentUserService;
 }
 public ProductCategoryServicesTests()
 {
     _productRepository   = Substitute.For <IProductCategoryRepository>();
     _supplierService     = Substitute.For <ISupplierService>();
     _excelService        = Substitute.For <IExcelService <ProductCategoryResponseModel> >();
     _notificationService = Substitute.For <INotificationService>();
     _productService      = new ProductCategoryService(_productRepository, _supplierService, _excelService, _notificationService);
 }
Пример #30
0
 public ProductCategoryService(IProductCategoryRepository productCategoryRepository, IUserRepository userRepository,
                               IProductRepository productRepository, IProductCategoryStatusRepository productCategoryStatusRepository)
 {
     _productCategoryRepository       = productCategoryRepository;
     _userRepository                  = userRepository;
     _productRepository               = productRepository;
     _productCategoryStatusRepository = productCategoryStatusRepository;
 }
Пример #31
0
        public ProductBO(IProductsRepository productsRepository
                , IProductCategoryRepository categoriesRepository
                , IProductSubcategoryRepository subcategoriesRepository)
        {
            _productsRepository = productsRepository;
            _categoriesRepository = categoriesRepository;
            _subcategoriesRepository = subcategoriesRepository;

            InitMaps();
        }
Пример #32
0
 public AddPresenter(IInventoryRepository inventoryRepository, IProductCategoryRepository categoryRepository, IStorageRepository storageRepository, IUnitOfMeasurementRepository measurementRepository, IProductRepository productRepository, IMerchandiseRepository merchandiseRepository, IStockMovementRepository stockMovementRepository)
 {
     _inventoryRepository = inventoryRepository;
     _categoryRepository = categoryRepository;
     _storageRepository = storageRepository;
     _measurementRepository = measurementRepository;
     _productRepository = productRepository;
     _merchandiseRepository = merchandiseRepository;
     _stockMovementRepository = stockMovementRepository;
 }
Пример #33
0
 public AdminController(IProductRepository repository, IProductCategoryRepository productCategoryRepository, ISalesOrderDetail salesOrderDetail, IUserRepository userRepository, ISalesOrderHeader salesOrderHeader, IProductModelRepository productModelRepository, IProductModelProductDescription productModelProductDescription, IProductDescription productDescription)
 {
     _repository = repository;
     _productCategoryRepository = productCategoryRepository;
     _salesOrderDetail = salesOrderDetail;
     _userRepository = userRepository;
     _salesOrderHeader = salesOrderHeader;
     _productModelRepository = productModelRepository;
     _productModelProductDescription = productModelProductDescription;
     _productDescription = productDescription;
 }
 public AddFromInventoryPresenter(IProductRepository productRepository, IInventoryRepository inventoryRepository, IProductCategoryRepository productCategoryRepository)
 {
     _productRepository = productRepository;
     _inventoryRepository = inventoryRepository;
     _productCategoryRepository = productCategoryRepository;
 }
Пример #35
0
 public AddPresenter(IProductCategoryRepository categoryRepository)
 {
     _categoryRepository = categoryRepository;
 }
 //// If you are using Dependency Injection, you can delete the following constructor
 //public ProductCategoryController() : this(new ProductCategoryRepository())
 //{
 //}
 public ProductCategoryController(IProductCategoryRepository productcategoryRepository)
 {
     this.productcategoryRepository = (IProductCategoryRepository)ObjectFactory.GetInstance(typeof(IProductCategoryRepository));
     this.productsubcategoryRepository = (IProductSubcategoryRepository)ObjectFactory.GetInstance(typeof(IProductSubcategoryRepository));
 }