public void TestDeleteBatch() { TestAddBatch(); bool success1, success2, success3, success4, success5, success6; success1 = success2 = success3 = success4 = success5 = success6 = false; success1 = BatchDAL.DeleteBatch(_batch1); success2 = BatchDAL.DeleteBatch(_batch2); success3 = BatchDAL.DeleteBatch(_batch3); success4 = BatchDAL.DeleteBatch(_batch4); success5 = BatchDAL.DeleteBatch(_batch5); success6 = BatchDAL.DeleteBatch(_batch6); Assert.IsTrue(success1 && success2 && success3 && success4 && success5 && success6); }
public void CleanUp() { try { BatchDAL.DeleteBatch(_batch1); BatchDAL.DeleteBatch(_batch2); BatchDAL.DeleteBatch(_batch3); BatchDAL.DeleteBatch(_batch4); BatchDAL.DeleteBatch(_batch5); BatchDAL.DeleteBatch(_batch6); } catch { } try { BatchTypeDAL.DeleteBatchType(type1.Name); BatchTypeDAL.DeleteBatchType(type2.Name); BatchTypeDAL.DeleteBatchType(type3.Name); BatchTypeDAL.DeleteBatchType(type4.Name); } catch { } }