public string Generate(string classAsAString) { var analyzer = new ClassAnalyzer(); var analysisResult = analyzer.Analyze(classAsAString); var modelCreator = new BuilderModelCreator(); var model = modelCreator.Create(analysisResult); var codeGenerator = new BuilderCodeGenerator(); return(codeGenerator.Generate(model)); }
public string Execute(BuilderModel builderModel) { var creator = new BuilderCodeGenerator(); return(creator.Generate(builderModel)); }