示例#1
0
        public bool AdminUpdateStudents(DataSet ds)
        {
            ctrAdminObj = new CtrAdmin();

            Console.WriteLine();
            Console.WriteLine("AdminUpdateStudents() " + GetExecutionThreadTime());

            return(ctrAdminObj.UpdateStudents(ds));
        }
示例#2
0
        public void AdminUpdateStudents()
        {
            CtrAdmin ctrAdminObj = new CtrAdmin();

            DataSet ds = ctrAdminObj.GetTableData("Students");
            DataRow dr = ds.Tables[0].NewRow();

            dr = AddStudentRow(dr);
            ds.Tables[0].Rows.Add(dr);

            bool actual   = ctrAdminObj.UpdateStudents(ds);
            bool expected = true;

            Assert.AreEqual(expected, actual);
        }