Ejemplo n.º 1
0
 public void ChangePassword(string login, string oldPassword, string newPassword)
 {
     if (CanLogin(login, oldPassword))
     {
         var e = new ChangePasswordEvent(login, newPassword);
         _blackBox.Record(new Event("ChangePassword", login, e.ToJson()));
     }
 }
Ejemplo n.º 2
0
 protected void When(ChangePasswordEvent @event)
 {
     this.Password = @event.Password;
 }
Ejemplo n.º 3
0
 /*************************************************************************************************/
 private void RaiseChangePasswordEvent(string oldPassword, string password, string confirmPassword)
 {
     ChangePasswordEvent?.Invoke(oldPassword, password, confirmPassword);
 }