예제 #1
0
        public void SetUp()
        {
            _stateRepository   = new Mock <ILastCallsRepository>();
            _stockBalanceQuery = new Mock <IStockBalanceQuery>();
            _pimCommandService = new Mock <IPimCommandService>();
            _timeOfLastQuery   = DateTime.Now.AddHours(-2);

            _settings = GetSettingsFromAppConfigForUnitTests();

            _stateRepository.Setup(repo => repo.GetTimeOfLastQueryForStockBalanceUpdates()).Returns(_timeOfLastQuery);
            _task = new PublishStockBalanceUpdatesTask(_settings, _stateRepository.Object, _stockBalanceQuery.Object, _pimCommandService.Object);
        }
        public void SetUp()
        {
            _stateRepository = new Mock<ILastCallsRepository>();
            _stockBalanceQuery = new Mock<IStockBalanceQuery>();
            _pimCommandService = new Mock<IPimCommandService>();
            _timeOfLastQuery = DateTime.Now.AddHours(-2);

            _settings = GetSettingsFromAppConfigForUnitTests();

            _stateRepository.Setup(repo => repo.GetTimeOfLastQueryForStockBalanceUpdates()).Returns(_timeOfLastQuery);
            _task = new PublishStockBalanceUpdatesTask(_settings, _stateRepository.Object, _stockBalanceQuery.Object, _pimCommandService.Object);
        }