public ActionResult DeleteConfirmed(string id) { //Supplier supplier = db.Suppliers.Find(id); //db.Suppliers.Remove(supplier); // db.SaveChanges(); SuppMgr.RemoveSupplier(id); return(RedirectToAction("Index")); }
public void RemoveSupplierTest() { SupplierMgr target = new SupplierMgr(); // TODO: Initialize to an appropriate value string supplierCode = "ROB-100"; // TODO: Initialize to an appropriate value try { target.RemoveSupplier(supplierCode); } catch (SupplierMgrException e) { Assert.Fail(e.ToString());//force fail of test } }