public void FilterByWhatToDo_WithFilterOneToDoIsBoundToModel() { toDoIndexResult = controller.FilterByWhatToDo("rice"); Assert.AreEqual(2, ((IQueryable <ToDo>)toDoIndexResult.Model).FirstOrDefault().ID); }