예제 #1
0
 public void FillData()
 {
     dt          = new DataTable();
     Businessobj = new BusinessAddDepartment();
     dt          = Businessobj.BusinessFillLocation();
     cmbxLocation.DisplayMember = dt.Columns[1].ToString();
     cmbxLocation.DataSource    = dt;
     cmbxLocation.DropDownStyle = ComboBoxStyle.DropDownList;
     txtDeptId.Text             = (Businessobj.BusinessGetLastDeptId() + 1).ToString();
 }
 public void TestBusinessGetLastDeptId()
 {
     Assert.IsTrue(objBusinessAddDept.BusinessGetLastDeptId() > 999);
 }