private function repositoryContents($lookupValue, $sagaType)
 {
     $identifiers = $this->sagaRepository->find($sagaType, new AssociationValue("myIdentifier", $lookupValue));
     $sagas = array();
     foreach ($identifiers as $identifier) {
         $sagas[] = $this->sagaRepository->load($identifier);
     }
     return $sagas;
 }
 /**
  * Asserts that the repository contains the given <code>expected</code> amount of active sagas.
  *
  * @param int $expected The number of expected sagas.
  * @throws GovernorAssertionError
  */
 public function assertActiveSagas($expected)
 {
     if ($expected !== $this->sagaRepository->size()) {
         throw new GovernorAssertionError(sprintf("Wrong number of active sagas. Expected <%s>, got <%s>.", $expected, $this->sagaRepository->size()));
     }
 }