public static IList <LoginAttempt> GenerateNewLoginAttempts(string userName)
        {
            bool wasSuccessfull = true;

            if (userName != UserConstants.TestUserName)
            {
                wasSuccessfull = false;
            }

            IList <LoginAttempt> retVal = new List <LoginAttempt>();

            for (int i = 0; i < AMFUserLogin.MaxAllowedLoginFailures + 1; i++)
            {
                retVal.Add(MockLoginAttemptRepository.GenerateNewLoginAttempt(i, userName, wasSuccessfull));
            }

            return(retVal);
        }
 public static LoginAttempt GenerateNewLoginAttempt(string userName)
 {
     return(MockLoginAttemptRepository.GenerateNewLoginAttempt(1, userName, true));
 }
 public static LoginAttempt GenerateNewLoginAttempt(int userId)
 {
     return(MockLoginAttemptRepository.GenerateNewLoginAttempt(1, Guid.NewGuid().ToString("N"), true));
 }