Пример #1
0
 public function testSeriousParticipationBlock()
 {
     $company = new Company();
     $company->setDeposit(10000);
     $procedure = new Procedure();
     $procedure->setStartPrice(100000);
     $app = new Application($company, $procedure);
     $app->blockMoney(new SeriousBlocker());
     $this->assertEquals(0, $company->getDeposit(), 'Deposit must be 0');
     $app->unblockMoney(new SeriousBlocker());
     $this->assertEquals(10000, $company->getDeposit(), 'Deposit must be 10000');
 }
Пример #2
0
 /**
  * @inheritdoc
  */
 public function unblock(Company $company, Procedure $procedure)
 {
     $company->setDeposit($company->getDeposit() + $this->getFee($procedure));
 }
Пример #3
0
 /**
  * @inheritdoc
  */
 public function unblock(Company $company, Procedure $procedure)
 {
     $company->setDeposit($company->getDeposit() + self::BASE_FEE);
 }