src/SFBulkAPIStarterTest/TestBulkApiClient.cs
/// <summary>
/// Tests getting a job after creating one. 
/// </summary>
Tests getting a job after creating one.
Tests getting a job after creating one .
[TestMethod]
        public void GetAccountJobTest()
        {
            CreateJobRequest insertAccountJobRequest = buildDefaultInsertAccountCreateJobRequest();
            Job insertAccountJob = _apiClient.CreateJob(insertAccountJobRequest);
            Job closedInsertAccountJob = _apiClient.CloseJob(insertAccountJob.Id);
            closedInsertAccountJob = _apiClient.GetJob(closedInsertAccountJob.Id);
            Assert.IsTrue(closedInsertAccountJob != null);
            Assert.AreEqual("Closed", closedInsertAccountJob.State);
        }
[ TestMethod ] public void GetAccountJobTest ( ) { CreateJobRequest insertAccountJobRequest = buildDefaultInsertAccountCreateJobRequest ( ) ; Job insertAccountJob = _apiClient . CreateJob ( insertAccountJobRequest ) ; Job closedInsertAccountJob = _apiClient . CloseJob ( insertAccountJob . Id ) ; closedInsertAccountJob = _apiClient . GetJob ( closedInsertAccountJob . Id ) ; Assert . IsTrue ( closedInsertAccountJob != null ) ; Assert . AreEqual ( " " , closedInsertAccountJob . State ) ; }
Tests getting a job after creating one.
Tests getting a job after creating one .
// Close job so no more batches are added.