src/SFBulkAPIStarterTest/TestBulkApiClient.cs
/// <summary>
/// Tests getting a batch's results file for a specified batch on a given job.
/// </summary>
Tests getting a batch's results file for a specified batch on a given job.
Tests getting a batch ' s results file for a specified batch on a given job .
[TestMethod]
        public void GetBatchResultsTest()
        {
            CreateJobRequest insertAccountJobRequest = buildDefaultInsertAccountCreateJobRequest();
            Job insertAccountJob = _apiClient.CreateJob(insertAccountJobRequest);
            String batchContents = buildDefaultAccountBatchContents();
            CreateBatchRequest batchRequest = buildCreateBatchRequest(insertAccountJob.Id, batchContents);
            Batch accountBatch = _apiClient.CreateBatch(batchRequest);
            String batchResults = _apiClient.GetBatchResults(accountBatch.JobId, accountBatch.Id);
            Assert.IsTrue(String.IsNullOrWhiteSpace(batchResults) == false);
        }
[ TestMethod ] public void GetBatchResultsTest ( ) { CreateJobRequest insertAccountJobRequest = buildDefaultInsertAccountCreateJobRequest ( ) ; Job insertAccountJob = _apiClient . CreateJob ( insertAccountJobRequest ) ; String batchContents = buildDefaultAccountBatchContents ( ) ; CreateBatchRequest batchRequest = buildCreateBatchRequest ( insertAccountJob . Id , batchContents ) ; Batch accountBatch = _apiClient . CreateBatch ( batchRequest ) ; String batchResults = _apiClient . GetBatchResults ( accountBatch . JobId , accountBatch . Id ) ; Assert . IsTrue ( String . IsNullOrWhiteSpace ( batchResults ) == false ) ; }
Tests getting a batch's results file for a specified batch on a given job.
Tests getting a batch ' s results file for a specified batch on a given job .