public void On(User_Password_ChangedEvent userPasswordChanged) { Password = userPasswordChanged.NewPassword; }
public void Handle(User_Password_ChangedEvent message) { var user = Users.Single(x => x.Id == message.UserId); user.Password = message.NewPassword; }