示例#1
0
        public void SqlRepository_Can_Update_Password()
        {
            User user = CreateUser("UpdatePasswordTestUser", "*****@*****.**", "oldpassword");

            rep.ApproveUser(user.Name, rep.GetApprovalTicket(user.Name).Value);
            string newPassword = "******";

            rep.SetPassword(user.Name, newPassword);

            Assert.IsTrue(rep.ValidateUser(user.Name, newPassword), "Could not log on with new password");
        }