public bool ChangePassword(PasswordDto user)
 {
     try
     {
         return(UserLoginBrl.ChangePassword(user, dbContext));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #2
0
        public void TestChangePassword()
        {
            UserDto currentUser = new UserDto()
            {
                Email    = "*****@*****.**",
                Password = new PasswordDto()
                {
                    Psw = "hola"
                },
                UserId = 50
            };

            UserBrl.Insert(currentUser, container);

            PasswordDto user = new PasswordDto()
            {
                PasswordId  = 50,
                NewPassword = "******",
                Psw         = "hola"
            };

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