public void AddRecipient(EmailAddress address)
 {
     this.CheckIfNotSent();
     this.recipients.Add(address);
 }
 private static EmailMessage CreateMessage(string subject,
                                           MessageBody body,
                                           EmailAddress sender,
                                           IEnumerable <EmailAddress> recipients)
 => new EmailMessage(subject, body, sender, recipients);
 public void UpdateSender(EmailAddress sender)
 {
     this.CheckIfNotSent();
     this.Sender = sender;
 }
 public static EmailMessage CreatePending(string subject,
                                          MessageBody body,
                                          EmailAddress sender,
                                          IEnumerable <EmailAddress> recipients)
 => CreateMessage(subject, body, sender, recipients);