Esempio n. 1
0
        public PublishPriceUpdatesTask(
			ITaskSettings settings,
			ILastCallsRepository lastCallsRepository, 
			IPriceUpdateQuery priceUpdateQuery,
			ICustomerAgreementQuery customerAgreementQuery,
			IPimCommandService pimCommandService)
        {
            _settings = settings;
            _lastCallsRepository = lastCallsRepository;
            _priceUpdateQuery = priceUpdateQuery;
            _pimCommandService = pimCommandService;
            _customerAgreementQuery = customerAgreementQuery;

            _timeOfLastQueryForPriceUpdates = lastCallsRepository.GetTimeOfLastQueryForPriceUpdates();
        }
Esempio n. 2
0
        public PublishPriceUpdatesTask(
            ITaskSettings settings,
            ILastCallsRepository lastCallsRepository,
            IPriceUpdateQuery priceUpdateQuery,
            ICustomerAgreementQuery customerAgreementQuery,
            IPimCommandService pimCommandService)
        {
            _settings               = settings;
            _lastCallsRepository    = lastCallsRepository;
            _priceUpdateQuery       = priceUpdateQuery;
            _pimCommandService      = pimCommandService;
            _customerAgreementQuery = customerAgreementQuery;

            _timeOfLastQueryForPriceUpdates = lastCallsRepository.GetTimeOfLastQueryForPriceUpdates();
        }