public function __construct(OptionValue $optionValue, DTOBuilderFactoryInterface $dtoBuilderFactory)
 {
     $this->entity = $optionValue;
     $this->dtoBuilderFactory = $dtoBuilderFactory;
     $this->entityDTO = new OptionValueDTO();
     $this->setId();
     $this->setTime();
     $this->entityDTO->sku = $this->entity->getSku();
     $this->entityDTO->name = $this->entity->getName();
     $this->entityDTO->unitPrice = $this->entity->getUnitPrice();
     $this->entityDTO->shippingWeight = $this->entity->getShippingWeight();
     $this->entityDTO->sortOrder = $this->entity->getSortOrder();
 }
 public function testCreateDefaults()
 {
     $option = $this->dummyData->getOption();
     $optionValue = new OptionValue($option);
     $this->assertSame(null, $optionValue->getSortOrder());
     $this->assertSame(null, $optionValue->getSku());
     $this->assertSame(null, $optionValue->getName());
     $this->assertSame(null, $optionValue->getShippingWeight());
     $this->assertSame($option, $optionValue->getOption());
     $this->assertTrue($optionValue->getPrice() instanceof Price);
 }