/// <summary> /// Constructor /// </summary> public EmailTask(iJobService pJobService, iEmailService pEmailService, iMailingListService pMailingList) { if (pJobService == null || pEmailService == null || pMailingList == null) { throw new NullReferenceException(); } _jobService = pJobService; _emailService = pEmailService; _mailingList = pMailingList; Resources resources = new Resources(GetType(), "Email.Templates"); string markdown = resources.ReadAsString("email.md"); using (StringReader reader = new StringReader(markdown)) { _template = new Template(); _template.Load(reader); } _markdown = new Markdown { ExtraMode = true, SafeMode = false }; }
/// <summary> /// Constructor /// </summary> protected GemsTest() { Reader = new Resources(GetType(), "Data"); }