public void TestDeleteSubcategory_Success(int subid)
 {
     try
     {
         _repo.DeletSubCategory(subid);
         var result = _repo.getsubcategorybyid(subid);
         Assert.IsNull(result);
     }
     catch (Exception ex)
     {
         Assert.Fail(ex.InnerException.Message);
     }
 }
Exemple #2
0
 public string DeletSubCategory(int subid)
 {
     _manager.DeletSubCategory(subid);
     return("subcategory deleted");
 }