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