Exemplo n.º 1
0
        public void TestCatHang_Them_ThieuMSP()
        {
            CatHangBUS CHBus = new CatHangBUS();
            int        a;
            string     mathung  = "T01";
            string     make     = "KA01";
            string     masp     = "";
            string     tensp    = "Apple";
            string     soluong  = "1000";
            string     ngaycat  = (DateTime.Now).ToString();
            string     nguoicat = "admin";
            CatHang    CH       = new CatHang(mathung, make, masp, tensp, soluong, ngaycat, nguoicat);

            a = CHBus.them(CH);
            Assert.AreEqual(0, a);
        }
Exemplo n.º 2
0
        public void TestCatHang_ThemLS_ThieuNguoiCat()
        {
            CatHangBUS CHBus = new CatHangBUS();
            int        a;
            string     mathung  = "T01";
            string     make     = "KA01";
            string     masp     = "123";
            string     tensp    = "Apple";
            string     soluong  = "1000";
            string     ngaycat  = "1/1/2018";
            string     nguoicat = "";
            CatHang    CH       = new CatHang(mathung, make, masp, tensp, soluong, ngaycat, nguoicat);

            a = CHBus.them(CH);
            Assert.AreEqual(0, a);
        }