コード例 #1
0
ファイル: BatchTypeDAL-Test.cs プロジェクト: alwalker/TTU
        public void TestGetBachType()
        {
            TestAddBatchType();

            BatchType test = BatchTypeDAL.GetBatchType(type1.Name);

            Assert.IsTrue(test.Equals(test, type1));
        }
コード例 #2
0
 /// <summary>
 /// Gets the batch type.
 /// </summary>
 /// <param name="name">The name of the batch type.</param>
 /// <returns></returns>
 public static BatchType GetBatchType(string name)
 {
     try
     {
         return(BatchTypeDAL.GetBatchType(name));
     }
     catch
     {
         throw;
     }
 }