public void Test_UpdateNSX_Suscess() { nsx = new NhaSanXuat(); nsx.MaNSX = 6; nsx.TenCongTyNSX = "nsxTestUpdate"; nsxBUS = new NhaSanXuatBUS(); Assert.AreEqual(0, nsxBUS.SearchTenNSXBUS(nsx.TenCongTyNSX).Count); nsxBUS.UpdateNSXBUS(nsx); Assert.AreEqual(1, nsxBUS.SearchTenNSXBUS(nsx.TenCongTyNSX).Count); }
public void Test_SearchTenNSX_Fail() { nsxBUS = new NhaSanXuatBUS(); Assert.AreEqual(0, nsxBUS.SearchTenNSXBUS("Tinh tinh").Count); }
public void Test_SearchTenNSX_Suscess() { nsxBUS = new NhaSanXuatBUS(); Assert.AreEqual(1, nsxBUS.SearchTenNSXBUS("CÔNG TY TNHH GẠCH AN PHÚ GIA").Count); }