Exemplo n.º 1
0
 public User ChangeEmailAddress(EmailAddress emailAddress)
 {
     return(new User(userRecord with {
         EmailAddress = emailAddress, EmailVerificationState = EmailVerificationState.Unverified
     }));
 }
Exemplo n.º 2
0
 public User(UserId userId, EmailAddress email, Password password, Option <Username> username, EmailVerificationState emailVerification)
 {
     userRecord = new UserRecord(userId, email, password, username, emailVerification);
 }
Exemplo n.º 3
0
 public User VerifyEmail()
 {
     return(new User(userRecord with {
         EmailVerificationState = EmailVerificationState.Verified
     }));
 }
Exemplo n.º 4
0
 private record UserRecord(
     UserId UserId,
     EmailAddress EmailAddress,
     Password Password,
     Option <Username> Username,
     EmailVerificationState EmailVerificationState);