public void TestGetWmpBankData() { var start = DateTime.Now.AddYears(-10); var end = DateTime.Now; string bank = "200465941";// null "" "200465941" "200465941,200014081" int total = 0; WMPRepository target = new WMPRepository(); var actual = target.GetWmpBankDataPaging(false, "all", string.IsNullOrEmpty(bank) ? "0" : bank, 1, "all", "all", "all", "all", "all", "all", start, end, null, "all", "PRD_NAME", null, 1, 50, "all", out total); foreach (DataRow item in actual.Rows) { Console.WriteLine(item["PRD_NAME"]); } Assert.IsNotNull(actual); }