public void getEntityTest() { BZDao target = new BZDao(); // TODO: Initialize to an appropriate value int id = 3; // TODO: Initialize to an appropriate value BZ actual; actual = target.getEntity(id); System.Console.WriteLine(actual.Id); Assert.Inconclusive("Verify the correctness of this test method."); }
public void batchDeleteTest() { BZDao target = new BZDao(); // TODO: Initialize to an appropriate value string ids = "1,2"; // TODO: Initialize to an appropriate value bool expected = true; // TODO: Initialize to an appropriate value bool actual; actual = target.batchDelete(ids); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void getListTest() { BZDao target = new BZDao(); // TODO: Initialize to an appropriate value string fieldList = "Id,bzh,bzmc,fbsj"; // TODO: Initialize to an appropriate value string orderField = "Id"; // TODO: Initialize to an appropriate value bool orderBy = false; // TODO: Initialize to an appropriate value int pageIndex = 1; // TODO: Initialize to an appropriate value int pageSize = 2; // TODO: Initialize to an appropriate value string where = string.Empty; // TODO: Initialize to an appropriate value DataRecordTable actual; actual = target.getList(fieldList, orderField, orderBy, pageIndex, pageSize, @where); System.Console.WriteLine(actual.RecordCount+";"+actual.PageCount); foreach (DataRow row in actual.Table.Rows) { System.Console.WriteLine(row["bzh"].ToString() + ";" + row["bzmc"].ToString() + ";" + row["fbsj"].ToString()); } // Assert.Inconclusive("Verify the correctness of this test method."); }