public void GetList_TestCase2() { List <PHONG> listPhongKham = null; PhongKhamBUS phongKhamBUS = new PhongKhamBUS(); string actual = phongKhamBUS.GetListPhongKham(db, out listPhongKham); string expected = "0000"; Assert.Equals(actual, expected); }
public string GetListPhongKham(out List <PhongKhamDTO> ListPhongKham) { PhongKhamBUS phongKhamBUS = new PhongKhamBUS(); using (QLPHONGKHAMEntities db = new QLPHONGKHAMEntities()) { phongKhamBUS.GetListPhongKham(db, out ListPhongKham); } if (ListPhongKham == null) { ListPhongKham = new List <PhongKhamDTO>(); } return(Constant.RES_SUC); }
public void GetList_TestCase1() { // create data search db.PHONGs.Add(new PHONG { MaPhong = "1234567890" }); db.PHONGs.Add(new PHONG { MaPhong = "1234567891" }); db.PHONGs.Add(new PHONG { MaPhong = "1234567892" }); List <PHONG> listPhongKham = null; PhongKhamBUS phongKhamBUS = new PhongKhamBUS(); string actual = phongKhamBUS.GetListPhongKham(db, out listPhongKham); string expected = "0000"; Assert.Equals(actual, expected); }