Example #1
0
        public string Generate(string @namespace, ResxResult mainResx, ResxResult localizedResx = null)
        {
            var b = new TypeScriptBuilder();

            WriteModule(b, 0, @namespace, mainResx, localizedResx);

            return(b.ToString());
        }
Example #2
0
        static async Task Main(string[] args)
        {
            Console.WriteLine("Hello World!");

            var projectDirectory = $"{Directory.GetParent(Environment.CurrentDirectory)?.Parent?.Parent?.FullName}\\Results";

            var assemblyFilePath = Assembly.GetAssembly(typeof(CarViewModel)).Location;

            var builder = new TypeScriptBuilder();

            await builder.ConvertAsync(assemblyFilePath, projectDirectory);

            Console.ReadKey();
        }
Example #3
0
 public TestContext()
 {
     _sut = new TypeScriptBuilder();
 }