Example #1
0
 public GuessesTheImageToReturn Get(int id)
 {
     if (!id.Validate())
     {
         throw new Exception("Invalid model");
     }
     return(rep.Get(id));
 }
        public void GuessesTheImageServiceTest_GetById_valid()
        {
            var expected = rep.Get(2);
            var actual   = service.Get(2);

            Assert.AreEqual(expected.Id, actual.Id);
        }