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