Esempio n. 1
0
        public void TestGetBachType()
        {
            TestAddBatchType();

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

            Assert.IsTrue(test.Equals(test, type1));
        }
Esempio n. 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;
     }
 }