Exemplo n.º 1
0
 public BatchRunnerTest()
 {
     _dbContext     = new DatabaseContext();
     _processorMock = new Mock <IBatchProcessor>();
     _processorMock.Setup(o => o.Process(It.IsAny <Batch>()));
     _batchRunnerService = new BatchRunnerService(_dbContext, _processorMock.Object);
 }
 public BatchRunner(IDbContext dbContext, IBatchRunnerService batchRunnerService)
 {
     _dbContext          = dbContext;
     _batchRunnerService = batchRunnerService;
 }