public void TestBatchRunnersWithSharedLogin()
        {
            var api = new BulkApiContext();
            api.Login(_UserName, _Password, _SecurityToken).Wait();

            var csv = File.ReadAllText("contactsupsert.csv");
            var b1 = new BatchRunner(api).Run(OperationType.upsert, "Contact", BulkContentType.CSV, csv, "CMS_Family_ID__c");

            var b2 = new BatchRunner(api).Run(OperationType.query, "Contact", BulkContentType.CSV, _SOQL, null);

            File.AppendAllText("results.csv", b1.Result);
            File.AppendAllText("results.csv", b2.Result);
        }
 public void TestBatchRunnerUpsert()
 {
     var csv = File.ReadAllText("contactsupsert.csv");
     var b = new BatchRunner(_UserName, _Password, _SecurityToken).Run(OperationType.upsert, "Contact", BulkContentType.CSV, csv, "CMS_Family_ID__c");
     File.AppendAllText("results.csv", b.Result);
 }
 public void TestBatchRunnerQuery()
 {
     var b = new BatchRunner(_UserName, _Password, _SecurityToken).Run( OperationType.query, "Contact", BulkContentType.CSV, _SOQL, null);
     File.AppendAllText("results.csv", b.Result);
 }