public void ChangePassword_Should_Update_Password() { const string CurrentPassword = "******"; _user.Password = CurrentPassword.Hash(); _user.ChangePassword(CurrentPassword, "foobar"); Assert.NotEqual(_user.Password, CurrentPassword); }
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); }