public bool AdminUpdateStudents(DataSet ds) { ctrAdminObj = new CtrAdmin(); Console.WriteLine(); Console.WriteLine("AdminUpdateStudents() " + GetExecutionThreadTime()); return(ctrAdminObj.UpdateStudents(ds)); }
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); }