public static void Start() { // Location of your APEX and C# Files that we will be converting DirectoryInfo apexLocation = new DirectoryInfo(@"/ApexSharp/SalesForce/src/classes/"); DirectoryInfo cSharpLocation = new DirectoryInfo(@"/ApexSharp/Demo/CSharpClasses/"); // Start Logging Setup.StartLogging(); // Always Initialize your settings when ever you are connecting to SF Setup.Init(); // Keep Track of the API Limits Console.WriteLine($"Api Request Remaining {Limits.GetApiLimits().DailyApiRequests.Remaining}"); // Create Offline classes for SObjects CreateOffLineClasses(); CodeConverter.ConvertToCSharp(apexLocation, cSharpLocation, "Demo.CSharpClasses"); //DmlTest.UpsertTest(); CodeConverter.ConvertToApex(cSharpLocation, apexLocation, 40); // Keep Track of the API Limits Console.WriteLine($"Api Request Remaining {Limits.GetApiLimits().DailyApiRequests.Remaining}"); // Flush and Close Setup.StopLogging(); Console.WriteLine("Done, Press Any Key To Exit"); Console.ReadKey(); }
public static void Init() { // Start Logging Setup.StartLogging(); // Always Initialize your settings before using it. Setup.Init(); UnitTestDataManager.UnitTestDataManagerOn(); }
public static void Main(string[] args) { // Always Initialize your settings when ever you are connecting to SF Setup.Init(); // Keep Track of the API Limits Console.WriteLine(Limits.GetApiLimits().DailyApiRequests.Remaining); // Create Offline classes for SObjects // CreateOffLineClasses(); // ConvertToCSharp(); CSharpClasses.RunAll.TestClassess(); // ConvertToApex(); // Keep Track of the API Limits Console.WriteLine(Limits.GetApiLimits().DailyApiRequests.Remaining); Console.WriteLine("Done"); }