public ActivatedAccount(AccountActivated e)
 {
     this.salt = e.Salt;
     this.passwordHash = e.PasswordHash;
 }
示例#2
0
 private void Apply(AccountActivated e)
 {
     impl = new ActivatedAccount(e);
 }
 public ActivatedAccount(AccountActivated e)
 {
     salt = e.Salt;
     passwordHash = e.PasswordHash;
 }
 public void Activate(string password)
 {
     var salt = Guid.NewGuid();
     var @event = new AccountActivated(salt, string.Format("{0}/{1}", salt, password).GetHashCode().ToString(CultureInfo.InvariantCulture));
     change(@event);
 }