public SendNotificationRequestedEvent DeepCloneWithSendNotificationOp(SendNotificationOp sendNotificationOp)
        {
            var result = new SendNotificationRequestedEvent(
                this.Id.DeepClone(),
                this.TimestampUtc.DeepClone(),
                sendNotificationOp);

            return(result);
        }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SendNotificationRequestedEvent"/> class.
        /// </summary>
        /// <param name="id">The notification tracking code identifier.</param>
        /// <param name="timestampUtc">The timestamp in UTC.</param>
        /// <param name="sendNotificationOp">The operation to send the notification.</param>
        public SendNotificationRequestedEvent(
            long id,
            DateTime timestampUtc,
            SendNotificationOp sendNotificationOp)
            : base(id, timestampUtc)
        {
            new { sendNotificationOp }.AsArg().Must().NotBeNull();

            this.SendNotificationOp = sendNotificationOp;
        }