예제 #1
0
        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);
        }
예제 #2
0
 public static LoginAttempt GenerateNewLoginAttempt(string userName)
 {
     return(MockLoginAttemptRepository.GenerateNewLoginAttempt(1, userName, true));
 }
예제 #3
0
 public static LoginAttempt GenerateNewLoginAttempt(int userId)
 {
     return(MockLoginAttemptRepository.GenerateNewLoginAttempt(1, Guid.NewGuid().ToString("N"), true));
 }