コード例 #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);
 }
コード例 #2
0
 public BatchRunner(IDbContext dbContext, IBatchRunnerService batchRunnerService)
 {
     _dbContext          = dbContext;
     _batchRunnerService = batchRunnerService;
 }