Inheritance: IMailTemplateEngine, IDisposable
Ejemplo n.º 1
0
        public void Setup()
        {
            _sender = new TestEmailSender();
            var outgouingQueue = new PersistentQueue(Guid.NewGuid().ToString("n"));
            var mailingListBroker = new MailingListBroker(new[]
            {
                new MailingRule("*", new MailingList("alice@localhost"))
            });
            var templateEngine = new RazorMailTemplateEngine(new RazorTemplatesFactory("Resources"), true);

            _notifier = new MailNotifier(
                "me@localhost",
                outgouingQueue,
                mailingListBroker,
                templateEngine,
                _sender);
        }
 public void Setup()
 {
     var factory = new RazorTemplatesFactory(@"Resources");
     _engine = new RazorMailTemplateEngine(factory, false);
 }