public static void Start() { // Always Initialize your settings Setup.InitializeSession(); // Keep Track of the API Limits Console.WriteLine($"Api Request Remaining {Limits.GetApiLimits().DailyApiRequests.Remaining}"); // Create Offline classes for SObjects ModelGen modelGen = new ModelGen(); // To save time we will only create objects we are going to work with List <string> onlyObjects = new List <string> { "Customer__c", "BankAccount__c", "AccountType__c" }; //modelGen.CreateOfflineSymbolTableForSql(onlyObjects.ToList(), "Demo.SObjects"); CreateOffLineClasses(); //SoqlParentChild.ParentChildDemo(); try { // Location of your APEX and C# Files that we will be converting DirectoryInfo apexLocation = new DirectoryInfo(@"../SalesForce/src/classes/"); DirectoryInfo cSharpLocation = new DirectoryInfo(@"../Demo/CSharpClasses/"); // Convert Apex to C# // CodeConverter.ConvertToCSharp(apexLocation, cSharpLocation, "Demo.CSharpClasses"); // Convert C# to APEX // CodeConverter.ConvertToApex(cSharpLocation, apexLocation, 40); } catch (DirectoryNotFoundException e) { Console.WriteLine(e.Message); } // Keep Track of the API Limits //Console.WriteLine($"Api Request Remaining {Limits.GetApiLimits().DailyApiRequests.Remaining}"); // Flush and Close Setup.StopLogging(); }
public static void Init() { Setup.InitializeSession(); UnitTestDataManager.UnitTestDataManagerOn(); }