public void ListAll_CallsAllMethods() { var answer = service.ListAll(); dbHelper.Verify(x => x.GetData(), Times.Once); Assert.Equal(3, answer.Count()); }
public ActionResult <List <Game> > ListAll() { return(_service.ListAll().ToList()); }