public bool Login(UserDto user)
 {
     try
     {
         return(UserLoginBrl.Login(user, dbContext));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 2
0
        public void TestLogin()
        {
            UserDto user = new UserDto()
            {
                Email    = "*****@*****.**",
                Password = new PasswordDto()
                {
                    Psw = "hola"
                }
            };
            UserDto currentUser = new UserDto()
            {
                Email    = "*****@*****.**",
                Password = new PasswordDto()
                {
                    Psw = "hola"
                }
            };

            UserBrl.Insert(currentUser, container);

            Assert.Equals(true, UserLoginBrl.Login(user, container));
        }