private function createFortuneProperty(ProfessionLevel $professionLevel, ExceptionalityFate $fate, Integer1To6 $roll, $propertyCode, BasePropertiesFactory $basePropertiesFactory)
 {
     if ($professionLevel->isPrimaryProperty($propertyCode)) {
         $value = $fate->getPrimaryPropertyBonusOnFortune($roll);
     } else {
         $value = $fate->getSecondaryPropertyBonusOnFortune($roll);
     }
     return $basePropertiesFactory->createProperty($value, $propertyCode);
 }
 /**
  * @test
  * @expectedException \DrdPlus\Properties\Base\Exceptions\UnknownBasePropertyCode
  */
 public function I_can_not_create_property_by_unknown_code()
 {
     $factory = new BasePropertiesFactory();
     $factory->createProperty(123, 'unknown code');
 }