internal CommandHandlingResult Handle(DateTime e, FakeBatchContext batchContext) { HandledEvents.Add(Tuple.Create <object, object>(e, batchContext)); var retry = Interlocked.Decrement(ref _failCount) >= 0; return(new CommandHandlingResult { Retry = retry, RetryDelay = 10 }); }
internal void OnBatchFinish(FakeBatchContext context) { BatchFinishReported = true; }
internal FakeBatchContext OnBatchStart() { BatchStartReported = true; LastCreatedBatchContext = new FakeBatchContext(); return(LastCreatedBatchContext); }