Example #1
0
        public SendEmailRequest DeepCloneWithEmailParticipants(EmailParticipants emailParticipants)
        {
            var result = new SendEmailRequest(
                emailParticipants,
                this.EmailContent?.DeepClone(),
                this.EmailOptions?.DeepClone());

            return(result);
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SendEmailRequest"/> class.
        /// </summary>
        /// <param name="emailParticipants">The email mailboxes of all of the participants in an email.</param>
        /// <param name="emailContent">The content of the email.</param>
        /// <param name="emailOptions">OPTIONAL options/instructions for sending the email.  DEFAULT is to use the system defaults.</param>
        public SendEmailRequest(
            EmailParticipants emailParticipants,
            EmailContent emailContent,
            EmailOptions emailOptions = null)
        {
            new { emailParticipants }.AsArg().Must().NotBeNull();
            new { emailContent }.AsArg().Must().NotBeNull();

            this.EmailParticipants = emailParticipants;
            this.EmailContent      = emailContent;
            this.EmailOptions      = emailOptions;
        }