public void TestGetBachType() { TestAddBatchType(); BatchType test = BatchTypeDAL.GetBatchType(type1.Name); Assert.IsTrue(test.Equals(test, type1)); }
/// <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; } }