//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @After public void removeBatch() public virtual void removeBatch() { Batch batch = managementService.createBatchQuery().singleResult(); if (batch != null) { managementService.deleteBatch(batch.Id, true); } HistoricBatch historicBatch = historyService.createHistoricBatchQuery().singleResult(); if (historicBatch != null) { historyService.deleteHistoricBatch(historicBatch.Id); } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @After public void cleanBatch() public virtual void cleanBatch() { Batch batch = engineRule.ManagementService.createBatchQuery().singleResult(); if (batch != null) { engineRule.ManagementService.deleteBatch(batch.Id, true); } HistoricBatch historicBatch = engineRule.HistoryService.createHistoricBatchQuery().singleResult(); if (historicBatch != null) { engineRule.HistoryService.deleteHistoricBatch(historicBatch.Id); } }