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

            user.Password = message.NewPassword;
        }