public void GetAllTodosReturnsFullList() { var testList = new List <EF.Entities.Todo>() { }; var mockTodoService = new Mock <ITodoService>(); mockTodoService.Setup(s => s.GetAll()).Returns(testList); var fakeTodoService = mockTodoService.Object; todoController = new TodoController(fakeTodoService); var actionResult = todoController.List(); }