Beispiel #1
0
        public void ChangePassword_Should_Update_Password()
        {
            const string CurrentPassword = "******";

            _user.Password = CurrentPassword.Hash();

            _user.ChangePassword(CurrentPassword, "foobar");

            Assert.NotEqual(_user.Password, CurrentPassword);
        }
Beispiel #2
0
        public void ChangePassword_Should_Update_Email()
        {
            const string CurrentPassword     = "******";
            DateTime     currentLastActivity = _user.LastActivityAt;

            _user.Password = CurrentPassword.Hash();

            _user.ChangePassword(CurrentPassword, "foobar");

            Assert.NotEqual(_user.LastActivityAt, currentLastActivity);
        }