Exemplo 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();
        }
Exemplo 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();
        }