public void DepartmentDAOUpdateTwiceShouldReturnNegative2()
        {
            DepartmentDAO dao = new DepartmentDAO();

            Department dep1 = dao.GetByID("56201441f748f20bb0a36148"); // Sales Id
            Department dep2 = dao.GetByID("56201441f748f20bb0a36148");

            dep1.DepartmentName = "SALES";
            int rowsUp = dao.Update(dep1);

            dep2.DepartmentName = "Sales";

            if (rowsUp == 1)
                rowsUp = dao.Update(dep2);
            Assert.IsTrue(rowsUp == -2);
        }
        public void DepartmentDAOUpdateShouldReturnTrue()
        {
            DepartmentDAO dao = new DepartmentDAO();
            Department dep = dao.GetByID("56201441f748f20bb0a36148"); // Sales ID
            dep.DepartmentName = "SALES";
            int rowsUpdated = dao.Update(dep);

            Assert.IsTrue(rowsUpdated == 1);
        }