public void logs_failure_if_username_is_not_empty()
        {
            const string userName = "******";
            var          audit    = new Audit();

            theSession.Stub(x => x.Load <LoginFailureHistory>(userName))
            .Return(new LoginFailureHistory {
                Attempts = 1, LockedOutTime = DateTime.Now
            });
            theRequest.UserName = userName;
            ClassUnderTest.LogFailure(theRequest, audit);
            theRepository.AssertWasCalled(x => x.Update(audit));
            theSession.AssertWasCalled(x => x.Load <LoginFailureHistory>("foo"));
            theSession.AssertWasCalled(x => x.Store(Arg <LoginFailureHistory> .Is.Anything));
        }