public string Delete(int id) { if (!id.Validate()) { throw new Exception("Invalid model"); } return(rep.Delete(id) > 0 ? "Delete completed successful" : null);; }
public void GuessesTheImageTest_GuessesTheImages_Delete_validModel() { var result = rep.Delete(1); Assert.AreEqual(1, result, string.Format("result != expected")); }