public void TestDelete_Success(int cid) { try { _repo.DeletCategory(cid); var result = _repo.getCategoryid(cid); Assert.IsNull(result); } catch (Exception ex) { Assert.Fail(ex.InnerException.Message); } }
public string DeletCategory(int cid) { _manager.DeletCategory(cid); return("Category deleted"); }