public void Setup() { this.workerBatchFactoryMock = new Mock <IWorkerBatchFactory>(MockBehavior.Strict); this.logHandlerMock = new Mock <ILogHandler>(MockBehavior.Strict); this.target = new BatchConsumeMiddleware( BatchSize, this.batchTimeout, this.workerBatchFactoryMock.Object, this.logHandlerMock.Object); }
public void Setup() { this.nextContext = null; this.timesNextWasCalled = 0; this.logHandlerMock = new Mock <ILogHandler>(MockBehavior.Strict); this.target = new BatchConsumeMiddleware( BatchSize, this.batchTimeout, this.logHandlerMock.Object); }