Example #1
0
        protected IDeleteJobResponse DeleteJob(IElasticClient client, string jobId)
        {
            var deleteJobResponse = client.DeleteJob(jobId);

            if (!deleteJobResponse.IsValid || deleteJobResponse.Acknowledged == false)
            {
                throw new Exception($"Problem deleting job {jobId} for integration test: : {deleteJobResponse.DebugInformation}");
            }
            return(deleteJobResponse);
        }