public void ChangePassword_GoodUserGoodPass_ReturnsTrue()
        {
            //Arrange
            var user    = "******";
            var oldpass = "******";
            var newpass = "******";
            //Act
            var actual = _mProv.ChangePassword(user, oldpass, newpass);

            //Assert
            Assert.IsTrue(actual);
        }
        public void ChangePasswordTest_UnapprovedUser_ReturnsFalse()
        {
            UserParameters u = _testUsers[0];
            //Change user to unapproved
            var user = _mp.GetUser(u.username, true);

            user.IsApproved = false;
            _mp.UpdateUser(user);

            string newpass = "******";
            bool   result  = true;

            result = _mp.ChangePassword(u.username, u.password, newpass);
            //Cleanup
            if (result)
            {
                _mp.ChangePassword(u.username, newpass, u.password);
            }
            user.IsApproved = true;
            _mp.UpdateUser(user);

            Assert.IsFalse(result);
        }