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);
     }
 }
示例#2
0
 public string DeletCategory(int cid)
 {
     _manager.DeletCategory(cid);
     return("Category deleted");
 }