/**
  *
  */
 public function statusAction()
 {
     $registrationResource = NULL;
     if (NULL !== ($account = $this->securityContext->getAccount())) {
         $registration = $this->registrationRepository->findOneByAccountAndNotCompleted($account);
         if ($registration !== NULL) {
             $registrationResource = $this->dataTransferObjectFactory->getDataTransferObject($registration)->getResource();
         }
     }
     $this->view->assign('value', array('tickets' => $this->bookableService->getTicketsStatus(), 'rooms' => $this->bookableService->getRoomStatus(), 'registrationResource' => $registrationResource));
 }
 /**
  * @test
  */
 public function ticketsAndRoomShouldBeUnavailable()
 {
     $this->inject($this->bookableService, 'configuration', [BookableService::TYPE_ROOM => ['fractionBase' => 12, 'availableQuota' => 10], BookableService::TYPE_TICKET => ['availableQuota' => 10]]);
     $bookables = $this->buildBookableRequest(10);
     $this->bookableService->requestRooms($bookables);
     $this->bookableService->requestTickets($bookables);
     $this->persistenceManager->persistAll();
     $this->assertEquals(0, $this->bookableService->getTicketsStatus());
     $this->assertEquals(0, $this->bookableService->getRoomStatus());
 }