public void TestUpdateEmpItemDAO() { EmpDAO empDao = new EmpDAO(); OleDbConnection con = empDao.Begin(); Emp emp = empDao.FindEmpByIdDAO(con, 1); empDao.UpdateEmpItemDAO(con, emp); empDao.Commit(); empDao.Close(); }
public void TestFindEmpByIDDAO() { EmpDAO empDao = new EmpDAO(); OleDbConnection con = empDao.Begin(); Emp emp = empDao.FindEmpByIdDAO(con, 5); Assert.AreEqual(emp.M_leaderName, "gray.piao"); empDao.Commit(); empDao.Close(); }