Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OrderConfirmation"/> class.
        /// </summary>
        /// <param name="mailService">The mail service.</param>
        /// <param name="messageBuilder">The message builder.</param>
        public OrderConfirmation([NotNull] MailService mailService, [NotNull] ConfirmationMessageBuilder messageBuilder)
        {
            Assert.ArgumentNotNull(mailService, "mailService");
            Assert.ArgumentNotNull(messageBuilder, "messageBuilder");

            this.mailService    = mailService;
            this.messageBuilder = messageBuilder;
        }
Ejemplo n.º 2
0
    /// <summary>
    /// Initializes a new instance of the <see cref="OrderConfirmation"/> class.
    /// </summary>
    /// <param name="mailService">The mail service.</param>
    /// <param name="messageBuilder">The message builder.</param>
    public OrderConfirmation([NotNull] MailService mailService, [NotNull] ConfirmationMessageBuilder messageBuilder)
    {
      Assert.ArgumentNotNull(mailService, "mailService");
      Assert.ArgumentNotNull(messageBuilder, "messageBuilder");

      this.mailService = mailService;
      this.messageBuilder = messageBuilder;
    }