Exemplo n.º 1
0
        public void SetUp()
        {
            _stateRepository        = new Mock <ILastCallsRepository>();
            _priceUpdateQuery       = new Mock <IPriceUpdateQuery>();
            _customerAgreementQuery = new Mock <ICustomerAgreementQuery>();
            _pimCommandService      = new Mock <IPimCommandService>();
            _timeOfLastQuery        = DateTime.Now.AddHours(-2);

            _settings = GetSettingsFromAppConfigForUnitTests();

            _stateRepository.Setup(repo => repo.GetTimeOfLastQueryForPriceUpdates()).Returns(_timeOfLastQuery);
            _task = new PublishPriceUpdatesTask(_settings, _stateRepository.Object, _priceUpdateQuery.Object, _customerAgreementQuery.Object, _pimCommandService.Object);
        }
        public void SetUp()
        {
            _stateRepository = new Mock<ILastCallsRepository>();
            _priceUpdateQuery = new Mock<IPriceUpdateQuery>();
            _customerAgreementQuery = new Mock<ICustomerAgreementQuery>();
            _pimCommandService = new Mock<IPimCommandService>();
            _timeOfLastQuery = DateTime.Now.AddHours(-2);

            _settings = GetSettingsFromAppConfigForUnitTests();

            _stateRepository.Setup(repo => repo.GetTimeOfLastQueryForPriceUpdates()).Returns(_timeOfLastQuery);
            _task = new PublishPriceUpdatesTask(_settings, _stateRepository.Object, _priceUpdateQuery.Object, _customerAgreementQuery.Object, _pimCommandService.Object);
        }