Communication IEmailsCommand.GeneratePreview(TemplateEmail email, TemplateContentItem templateContentItem) { var copyItemEngine = _templateEngine.GetCopyItemEngine(templateContentItem); var context = new TemplateContext { Id = email.Id }; var copyItem = _templateEngine.GetCopyItem(copyItemEngine, context, email.Properties, null); return(email.CreateCommunication(copyItem)); }
CopyItemEngine ITemplateEngine.GetCopyItemEngine(TemplateContentItem templateContentItem) { return(_firstTemplateEngine.GetCopyItemEngine(templateContentItem)); }