public function test_id_apply_returns_data()
 {
     $class = $this->repository->model();
     $result = $this->criteria->apply(new $class(), $this->repository)->get()->first();
     $this->assertEquals('Category 1', $result->name);
     $this->assertEquals('Description 1', $result->description);
 }
 public function getByCriteria(CriteriaInterface $criteria)
 {
     $this->model = $criteria->apply($this->model, $this);
     return $this;
 }