Пример #1
0
        public DataCollectionManager(ICatalogApiService catalogApiService, ISystemConfiguration config, IMerchantRepository merchantRepository, IProductLogRepository productLogRepository, IBus bus)
        {
            if (catalogApiService == null)
            {
                throw new ArgumentNullException("catalogApiService");
            }
            if (productLogRepository == null)
            {
                throw new ArgumentNullException("productLogRepository");
            }
            if (merchantRepository == null)
            {
                throw new ArgumentNullException("merchantRepository");
            }
            if (config == null)
            {
                throw new ArgumentNullException("config");
            }
            if (bus == null)
            {
                throw new ArgumentNullException("bus");
            }

            _merchantRepository   = merchantRepository;
            _config               = config;
            _catalogApiService    = catalogApiService;
            _productLogRepository = productLogRepository;
            _bus = bus;
        }
Пример #2
0
 public UnitOfWork(ApplicationDbContext.ApplicationDbContext context, IProductLogRepository productLogs, IBillingRepository billings, IProductRepository products, IUserRepository users, IProductLikeRepository productLikes)
 {
     _context     = context;
     ProductLogs  = productLogs;
     Billings     = billings;
     Products     = products;
     Users        = users;
     ProductLikes = productLikes;
 }
Пример #3
0
 public ProductLogService(IProductLogRepository productLogRepository, IProductRepository productRepository, IUnitOfWork uow
                          , IEmployeeRepository employeeRepository, IStoreRepository storeRepository, IStoreProductRepository storeProductrepository, IStoreProductService storproductService)
     : this(productLogRepository, uow)
 {
     this._productRepository = productRepository;
     _employeeRepository     = employeeRepository;
     _storRepository         = storeRepository;
     _storeProductrepository = storeProductrepository;
     _storproductService     = storproductService;
 }
Пример #4
0
        public ReceivedCatalogMessageHandler(IProductUpdateHandler productUpdateHandler, IProductLogRepository productLogRepository, IVenueProductRepository venueProductRepository)
        {
            if (productUpdateHandler == null)
            {
                throw new ArgumentNullException("productUpdateHandler");
            }
            if (productLogRepository == null)
            {
                throw new ArgumentNullException("productLogRepository");
            }
            if (venueProductRepository == null)
            {
                throw new ArgumentNullException("venueProductRepository");
            }

            _venueProductRepository = venueProductRepository;
            _productUpdateHandler   = productUpdateHandler;
            _productLogRepository   = productLogRepository;
        }
Пример #5
0
 public ProductLogService(IProductLogRepository productLogRepository, IUnitOfWork uow)
 {
     _productLogRepository = productLogRepository;
     _uow = uow;
 }