public void applies_history_if_username_is_not_empty()
        {
            const string userName = "******";

            theSession.Stub(x => x.Load <LoginFailureHistory>(userName))
            .Return(new LoginFailureHistory {
                Attempts = 1, LockedOutTime = DateTime.Now
            });
            theRequest.UserName = userName;
            ClassUnderTest.ApplyHistory(theRequest);
            theSession.AssertWasCalled(x => x.Load <LoginFailureHistory>("foo"));
            theRequest.NumberOfTries.ShouldBe(1);
            theRequest.LockedOutUntil.HasValue.ShouldBeTrue();
        }