예제 #1
0
        public void Test_UpdateLoaiSP_Suscess()
        {
            lsp          = new LoaiSanPham();
            lsp.MaLoaiSP = 5;
            lsp.TenLoai  = "Thép";

            lspBUS = new LoaiSanPhamBUS();
            Assert.AreEqual(0, lspBUS.SearchTenLoaiSPBUS(lsp.TenLoai).Count);

            lspBUS.UpdateLoaiSPBUS(lsp);

            Assert.AreEqual(1, lspBUS.SearchTenLoaiSPBUS(lsp.TenLoai).Count);
        }