public WhenApplyingALinearBackoffPolicyOnAHandler() { _fixture = new Fixture() .CustomizeConnectedProjectionIdentifiers(); _handlerWithoutPolicy = new MessageHandlerWithExecutionTracking( _fixture.Create <ConnectedProjectionIdentifier>(), new Mock <ILogger>().Object); var numberOfRetries = _fixture.CreatePositive <int>() + 1; _numberOfExpectedAttempts = Times.Once(); var initialWait = TimeSpan.FromMilliseconds(_fixture.CreatePositive <int>()); var linearBackoffPolicy = new LinearBackOff <RetryException>(numberOfRetries, initialWait); _sut = linearBackoffPolicy.ApplyOn(_handlerWithoutPolicy); }