コード例 #1
0
ファイル: BatchTypeDAL-Test.cs プロジェクト: alwalker/TTU
        public void TestDeleteBatch()
        {
            bool success1 = BatchTypeDAL.DeleteBatchType(type1.Name);
            bool success2 = BatchTypeDAL.DeleteBatchType(type2.Name);
            bool success3 = BatchTypeDAL.DeleteBatchType(type3.Name);
            bool success4 = BatchTypeDAL.DeleteBatchType(type4.Name);

            Assert.IsTrue(success1 && success2 && success3 && success4);
        }
コード例 #2
0
 public void CleanUp()
 {
     try
     {
         BatchTypeDAL.DeleteBatchType(type1.Name);
         BatchTypeDAL.DeleteBatchType(type2.Name);
         BatchTypeDAL.DeleteBatchType(type3.Name);
         BatchTypeDAL.DeleteBatchType(type4.Name);
     }
     catch { }
 }
コード例 #3
0
        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 { }
        }