public void UpdateUser_GoodUser_DoesNotThrowError()
        {
            //Arrange
            var m = _mProv.GetUser("GoodUser", true);

            //Act
            _mProv.UpdateUser(m);
            //Assert
            Assert.IsTrue(true);
        }
        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);
        }