public function testVoucherGroupRemove()
 {
     $oContainer = $this->getContainer();
     $aOperations = $oContainer->getVoucherGroupOperations();
     $oRemoveOperation = $aOperations['delete'];
     # assert correct operation was returned
     $this->assertInstanceOf('\\IComeFromTheNet\\Ledger\\Voucher\\Operations\\GroupRemove', $oRemoveOperation);
     $oGroup = new VoucherGroup();
     $iID = 1;
     $oGroup->setVoucherGroupId($iID);
     $oRemoveOperation->execute($oGroup);
 }
 /**
  *  Convert data array into entity
  *
  *  @return VoucherGroup
  *  @param array $data
  *  @access public
  */
 public function build($data)
 {
     $oEntity = new VoucherGroup();
     $sAlias = $this->getTableQueryAlias();
     $iVoucherGroupId = $this->getField($data, 'voucher_group_id', $sAlias);
     $sVoucherGroupName = $this->getField($data, 'voucher_group_name', $sAlias);
     $sVoucheGroupSlug = $this->getField($data, 'voucher_group_slug', $sAlias);
     $bIsDisabled = $this->getField($data, 'is_disabled', $sAlias);
     $iSortOrder = $this->getField($data, 'sort_order', $sAlias);
     $oDateCreated = $this->getField($data, 'date_created', $sAlias);
     $oEntity->setVoucherGroupId($iVoucherGroupId);
     $oEntity->setVoucherGroupName($sVoucherGroupName);
     $oEntity->setSlugName($sVoucheGroupSlug);
     $oEntity->setDisabledStatus($bIsDisabled);
     $oEntity->setSortOrder($iSortOrder);
     $oEntity->setDateCreated($oDateCreated);
     return $oEntity;
 }