Beispiel #1
0
        public void ThemNCC()
        {
            DoAnWeb.Areas.Admin.Controllers.SupplierController ctrl = new DoAnWeb.Areas.Admin.Controllers.SupplierController();
            DoAnWeb.NhaCungCap ncc = new NhaCungCap();
            var result             = ctrl.ThemNhaCungCap(ncc);

            Assert.AreNotEqual("Thêm thành công", result);
        }
Beispiel #2
0
        public void CapNhatNCC()
        {
            DoAnWeb.Areas.Admin.Controllers.SupplierController ctrl = new DoAnWeb.Areas.Admin.Controllers.SupplierController();
            DoAnWeb.NhaCungCap ncc = new NhaCungCap();
            //ncc.IdNhaCungCap = Guid.Parse("F3409D77-8847-43BA-B408-2C51470B2FAC");
            var result = ctrl.ThemNhaCungCap(ncc);

            Assert.AreEqual("Đã xảy ra lỗi!", result);
        }