public void SetUp() { theTemplates = TemplateLibrary.BuildClean("validation"); theTemplates.StartTemplate(TemplateType.Solution, "Simple"); theTemplates.StartTemplate(TemplateType.Solution, "Complex"); theTemplates.StartTemplate(TemplateType.Project, "MvcApp"); theTemplates.StartTemplate(TemplateType.Project, "MvcBottle"); theTemplates.StartTemplate(TemplateType.Alteration, "Assets"); theTemplates.StartTemplate(TemplateType.Alteration, "HtmlConventions"); }
public void generate_a_simple_template() { // SAMPLE: generating-with-templates var library = new TemplateLibrary("path to your templates"); var builder = new TemplatePlanBuilder(library); var request = buildTemplateRequest(); // Build a TemplatePlan var plan = builder.BuildPlan(request); plan.Execute(); // ENDSAMPLE }
public void SetUp() { library = new TemplateLibrary( ".".ToFullPath().ParentDirectory().ParentDirectory().ParentDirectory().AppendPath("templates")); theRequest = new TemplateRequest { RootDirectory = "integrated", SolutionName = "MySolution" }; new FileSystem().DeleteDirectory("integrated"); }