示例#1
0
 public string Delete(int id)
 {
     if (!id.Validate())
     {
         throw new Exception("Invalid model");
     }
     return(rep.Delete(id) > 0
             ? "Delete completed successful"
             : null);;
 }
示例#2
0
        public void GuessesTheImageTest_GuessesTheImages_Delete_validModel()
        {
            var result = rep.Delete(1);

            Assert.AreEqual(1, result, string.Format("result != expected"));
        }