public void SetUp()
 {
     LogAverageExecutionTimeDecoratorForTest<IAuthorisationService>.ResetRequestCounter();
     _decoratee = MockRepository.GenerateMock<IAuthorisationService>();
     _stopwatch = MockRepository.GenerateMock<ITescoStopwatch>();
     _logger = MockRepository.GenerateMock<ILogger>();
     _clock = MockRepository.GenerateMock<IClock>();
     _clock.Stub(c => c.ApplicationNow).Return(_applicationNow);
     _decorator = new LogAverageExecutionTimeDecorator<IAuthorisationService>(_decoratee, _stopwatch, _logger, _clock, 1);
 }
 public DisposableStopwatch(ITescoStopwatch stopwatch, Action continuation)
 {
     _stopwatch = stopwatch;
     _continuation = continuation;
     _stopwatch.Start();
 }