public void SentenceTaskServiceTest_GetById_valid() { var expected = rep.Get(1); var actual = service.Get(1); Assert.AreEqual(expected, actual); }
public SentenceTask Get(int id) { if (!id.Validate()) { throw new Exception("Invalid model"); } return(rep.Get(id)); }