コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }