public void ScaffoldConnectionStatusEnum() { var definition = new TypeScriptEnumDefinition { Documentation = new Documentation { Summary = "Represents the state for connections" }, Name = "ConnectionState", Sets = { new NameValue("Broken"), new NameValue("Closed"), new NameValue("Connecting"), new NameValue("Executing"), new NameValue("Fetching"), new NameValue("Open") } }; foreach (var filePath in TypeScriptEnumBuilder.CreateFiles("C:\\Temp\\CatFactory.TypeScript", string.Empty, true, definition)) { Process.Start(ScaffoldingPaths.TscPath, string.Format("{0} --outDir {1}", Path.Combine(ScaffoldingPaths.TsFilesPath, filePath), ScaffoldingPaths.OutPath)); } }
public void ScaffoldDirectionEnum() { var definition = new TypeScriptEnumDefinition { Name = "Direction", Sets = { new NameValue("Up", "100"), new NameValue("Down", "200"), new NameValue("Right", "300"), new NameValue("Left", "400") } }; foreach (var filePath in TypeScriptEnumBuilder.CreateFiles("C:\\Temp\\CatFactory.TypeScript", string.Empty, true, definition)) { Process.Start(ScaffoldingPaths.TscPath, string.Format("{0} --outDir {1}", Path.Combine(ScaffoldingPaths.TsFilesPath, filePath), ScaffoldingPaths.OutPath)); } }