Exemplo n.º 1
0
        public void ThemChiNhapMaNCCVaTenNCC()//pass
        {
            SupplierDAO u = new SupplierDAO();

            ncc1 = new Supplier("MNCC", "Tên NCC", "");
            double expected = 1;
            double actual   = u.Add(ncc1);

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
        public void ThemNCCThanhCong()//pass
        {
            SupplierDAO u = new SupplierDAO();

            ncc1 = new Supplier("Mã NCC", "Tên NCC", "Địa Chỉ");
            double expected = 1;
            double actual   = u.Add(ncc1);

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 3
0
        public void ThemChiNhapDiaChi()//fail
        {
            SupplierDAO u = new SupplierDAO();

            ncc1 = new Supplier("", "", "ĐịaChỉ");
            double expected = -1;
            double actual   = u.Add(ncc1);

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 4
0
 public int Add(Supplier s)
 {
     return(sDAO.Add(s));
 }