src/SFBulkAPIStarterTest/TestBulkApiClient.cs
/// <summary>
/// Test creating and closing a job for inserting accounts without any batches.
/// </summary>
Test creating and closing a job for inserting accounts without any batches.
Test creating and closing a job for inserting accounts without any batches .
[TestMethod]
        public void CreateAccountJobTest()
        {
            CreateJobRequest insertAccountJobRequest = buildDefaultInsertAccountCreateJobRequest();
            Job insertAccountJob = _apiClient.CreateJob(insertAccountJobRequest);
            Assert.IsTrue(insertAccountJob != null);
            Assert.IsTrue(String.IsNullOrWhiteSpace(insertAccountJob.Id) == false);
            Assert.AreEqual("Open", insertAccountJob.State);
            Job closedJob = _apiClient.CloseJob(insertAccountJob.Id);
            Assert.AreEqual("Closed", closedJob.State);
        }
[ TestMethod ] public void CreateAccountJobTest ( ) { CreateJobRequest insertAccountJobRequest = buildDefaultInsertAccountCreateJobRequest ( ) ; Job insertAccountJob = _apiClient . CreateJob ( insertAccountJobRequest ) ; Assert . IsTrue ( insertAccountJob != null ) ; Assert . IsTrue ( String . IsNullOrWhiteSpace ( insertAccountJob . Id ) == false ) ; Assert . AreEqual ( " " , insertAccountJob . State ) ; Job closedJob = _apiClient . CloseJob ( insertAccountJob . Id ) ; Assert . AreEqual ( " " , closedJob . State ) ; }
Test creating and closing a job for inserting accounts without any batches.
Test creating and closing a job for inserting accounts without any batches .
// Create insert account job // Close job so no more batches are added.