public void TestMethod14()
        {
            string file = File.ReadAllText(@"TestFiles\Test1.html");

            BuiltInComponentsInserter.InsertBuiltInComponents();
            var basicComponentsContainer = ComponentsContainer.Instance;
            ComponentsFactory factory    = new ComponentsFactory(basicComponentsContainer, basicComponentsContainer, basicComponentsContainer, basicComponentsContainer);
            var files = factory.CreateCsOutput(file);

            Directory.CreateDirectory(NamespaceFileConverter.ConvertNamespaceToFilePath(Consts.PAGES_NAMESPACE));
            Directory.CreateDirectory(NamespaceFileConverter.ConvertNamespaceToFilePath(Consts.COMPONENTS_NAMESPACE));
            foreach (var innerFile in files)
            {
                File.WriteAllText(innerFile.CsFilePath, innerFile.Body);
            }
        }
        public void GenerateProject(string webAppBaseDirectory, string projectName, string solutionName = null,
                                    string distDirectory = null)
        {
            BuiltInComponentsInserter.InsertBuiltInComponents();
            distDirectory = distDirectory ?? Environment.CurrentDirectory + "\\test";
            CreateSolution(projectName);
            ComponentsContainer             container         = ComponentsContainer.Instance;
            ComponentsFactory               componentsFactory = new ComponentsFactory(container, container, container, container);
            WebFolderToCsFilesConverter     converter         = new WebFolderToCsFilesConverter(componentsFactory, new HtmlFinder());
            List <ComponentGeneratorOutput> results           = converter.GenerateClasses(webAppBaseDirectory);

            AddBaseClassesToResults(results);
            CreateFiles(distDirectory, results);
            string         packageConfigName = CreatePackagesConfig(distDirectory);
            ProjectBuilder builder           = new ProjectBuilder();

            builder.BuildProject(projectName, results, distDirectory, packageConfigName);
        }