/**
  * Update the inventory units.
  *
  * @param GenericEvent $event
  */
 public function processInventoryUnits(GenericEvent $event)
 {
     $this->inventoryHandler->processInventoryUnits($this->getItem($event));
 }
 /**
  * @param GenericEvent $event
  */
 public function holdInventoryUnits(GenericEvent $event)
 {
     $this->inventoryHandler->holdInventory($this->getOrder($event));
 }
 function it_creates_inventory_units(InventoryHandlerInterface $inventoryHandler, GenericEvent $event, OrderItemInterface $item)
 {
     $event->getSubject()->willReturn($item);
     $inventoryHandler->processInventoryUnits($item)->shouldBeCalled();
     $this->processInventoryUnits($event);
 }