src/SFBulkAPIStarterTest/TestBulkApiClient.cs
/// <summary>
/// Tests getting the batch contents for a specific batch in a specific job.
/// </summary>
Tests getting the batch contents for a specific batch in a specific job.
Tests getting the batch contents for a specific batch in a specific job .
[TestMethod]
        public void GetBatchRequestTest()
        {
            CreateJobRequest insertAccountJobRequest = buildDefaultInsertAccountCreateJobRequest();
            Job insertAccountJob = _apiClient.CreateJob(insertAccountJobRequest);
            String batchContents = buildDefaultAccountBatchContents();
            CreateBatchRequest batchRequest = buildCreateBatchRequest(insertAccountJob.Id, batchContents);
            Batch accountBatch = _apiClient.CreateBatch(batchRequest);
            String batchRequestContents = _apiClient.GetBatchRequest(accountBatch.JobId, accountBatch.Id);
            Assert.AreEqual(batchContents, batchRequestContents);
        }
[ TestMethod ] public void GetBatchRequestTest ( ) { CreateJobRequest insertAccountJobRequest = buildDefaultInsertAccountCreateJobRequest ( ) ; Job insertAccountJob = _apiClient . CreateJob ( insertAccountJobRequest ) ; String batchContents = buildDefaultAccountBatchContents ( ) ; CreateBatchRequest batchRequest = buildCreateBatchRequest ( insertAccountJob . Id , batchContents ) ; Batch accountBatch = _apiClient . CreateBatch ( batchRequest ) ; String batchRequestContents = _apiClient . GetBatchRequest ( accountBatch . JobId , accountBatch . Id ) ; Assert . AreEqual ( batchContents , batchRequestContents ) ; }
Tests getting the batch contents for a specific batch in a specific job.
Tests getting the batch contents for a specific batch in a specific job .