public bool Remove(string login)
        {
            if (null != login)
            {
                Authenticate authenticate = authenticateData.GetByLogin(login);
                if (null == authenticate)
                {
                    return(false);
                }

                User user = userData.GetByAuthenticationId(authenticate.authenticateId.id);
                if (null == user)
                {
                    return(false);
                }

                /* On supprime l'utilisateur */
                bool result = userData.Remove(user.id.id);

                if (!result)
                {
                    return(result);
                }

                /* On supprime ses identifiants */
                return(authenticateData.Remove(login));
            }
            return(false);
        }
예제 #2
0
 public void Should_get()
 {
     init();
     Assert.IsNotNull(authenticator.GetByLogin("login2"));
 }