public void MakeSureICanGetPoemByID() { //Arrange PoemRepository repo = new PoemRepository(mock_context.Object); //Act int myId = 102; Poem found_poetry = repo.FindPoemById(myId); List <Poem> my_poetry = repo.GetPoems(); Assert.IsTrue(my_poetry.Contains(found_poetry)); }
// GET api/<controller>/5 public Poem Get(int id) { Poem foundPoem = repo.FindPoemById(id); return(foundPoem); }