private void MethodGetByCategoryIdReturnsCorrectExercises() { _repository.Setup(repo => repo.GetAllWhere(It.IsAny <Func <Exercise, bool> >())).Returns(_exercises); var actionResult = _service.GetAllForCategoryId(1); Assert.Equal(_exerciseDtos, actionResult); }