Esempio n. 1
0
        public MailMessagePersister(IRepository repository, IEmailClient emailClient, IInquiryFactory inquiryFactory, IMailMessageParserFactory mailMessageParserFactory)
        {
            this.repository               = repository;
            this.inquiryFactory           = inquiryFactory;
            this.emailClient              = emailClient;
            this.mailMessageParserFactory = mailMessageParserFactory;

            emailClient.MailMessageReceived += ProcessMessage;
        }
        public MailMessagePersister(IRepository repository, IEmailClient emailClient, IInquiryFactory inquiryFactory, IMailMessageParserFactory mailMessageParserFactory)
        {
            this.repository = repository;
            this.inquiryFactory = inquiryFactory;
            this.emailClient = emailClient;
            this.mailMessageParserFactory = mailMessageParserFactory;

            emailClient.MailMessageReceived += ProcessMessage;
        }