Esempio n. 1
0
        public void Login()
        {
            BL.IUser user = new BL.User();
            if (new BL.AccountService().IsLogged(TOKEN))
                user.Logout(TOKEN);

            string token = user.Login("*****@*****.**", "martin@123");
            Assert.IsFalse(string.IsNullOrEmpty(token));
        }
Esempio n. 2
0
 public void BadPasswordLogin()
 {
     try {
         string token = new BL.User().Login("*****@*****.**", "martin123");
     }
     catch(Exception ex)
     {
         Assert.IsTrue(ex is DTO.MamalonaException);
     }
 }