public void SetUp() { TestRegistry.SetUpTestRegistry(); _fileProcessingService = new Mock<IEdiFileProcessingService>(); _createOrderMessagePublisher = new Mock<IEdiMessagePublisher>(); _sut = new EdiDocsInWorker(_createOrderMessagePublisher.Object, _fileProcessingService.Object); }
public void Start(bool runOnce) { _ediDocsInWorker = new EdiDocsInWorker(_ediFileProcessingService); if (runOnce) _ediDocsInWorker.DoWork(null); else { _timer = new Timer(_ediDocsInWorker.DoWork, null, 0, 30000); } }
public void Start(bool runOnce) { _ediDocsInWorker = new EdiDocsInWorker(_ediFileProcessingService); if (runOnce) { _ediDocsInWorker.DoWork(null); } else { _timer = new Timer(_ediDocsInWorker.DoWork, null, 0, 30000); } }