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; }