public void SetUp() { DirectoryInfo currentProjectDirectory = ExecutingProjectFinder.GetExecutingProjectDirectory(); if (!currentProjectDirectory.Exists) { throw new DirectoryNotFoundException(currentProjectDirectory.FullName); } _template = new FileInfo(Path.Combine(currentProjectDirectory.FullName, TEMPLATE_RELATIVE_PATH_TO_EXECUTING_PROJECT_DIRECTORY)); if (!_template.Exists) { throw new FileNotFoundException(_template.FullName); } _textTemplatingEngineHost = new CustomTextTemplatingEngineHost(AppDomain.CurrentDomain); _templateProcessor = new TemplateProcessor(_textTemplatingEngineHost); _templateCompiler = new TemplateCompiler(); }
public TemplateProcessor(ICustomTextTemplatingEngineHost textTemplatingEngineHost) { _textTemplatingEngineHost = textTemplatingEngineHost; }