/// <summary> /// Initializes a new instance of the <see cref="SendEmailRequestedEvent{TId}"/> class. /// </summary> /// <param name="id">The identifier.</param> /// <param name="timestampUtc">The timestamp in UTC.</param> /// <param name="sendEmailRequest">The request to send the email.</param> public SendEmailRequestedEvent( TId id, DateTime timestampUtc, SendEmailRequest sendEmailRequest) : base(id, timestampUtc) { new { sendEmailRequest }.AsArg().Must().NotBeNull(); this.SendEmailRequest = sendEmailRequest; }