示例#1
0
        public void AdminUpdateLandlords()
        {
            CtrAdmin ctrAdminObj = new CtrAdmin();

            DataSet ds = ctrAdminObj.GetTableData("Landlords");
            DataRow dr = ds.Tables[0].NewRow();
            dr = AddLandlordRow(dr);
            ds.Tables[0].Rows.Add(dr);

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

            Assert.AreEqual(expected, actual);
        }
示例#2
0
        public bool AdminUpdateLandlords(DataSet ds)
        {
            ctrAdminObj = new CtrAdmin();

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

            return ctrAdminObj.UpdateLandlords(ds);
        }