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");
 }
Ejemplo n.º 2
0
        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
        }
Ejemplo n.º 3
0
        public void SetUp()
        {
            library =
                new TemplateLibrary(
                    ".".ToFullPath().ParentDirectory().ParentDirectory().ParentDirectory().AppendPath("templates"));

            theRequest = new TemplateRequest
            {
                RootDirectory = "integrated",
                SolutionName = "MySolution"
            };

            new FileSystem().DeleteDirectory("integrated");
        }