Пример #1
0
 function it_is_add_account_correct(AccountRepository $accountRepository, BankAccount $oBankAccount, Client $oClient)
 {
     $oBankAccountWrapped = $oBankAccount->getWrappedObject();
     $accountRepository->add($oBankAccountWrapped)->shouldBeCalled();
     $oBankAccount->setIdClient($oClient->getId());
     $this->beConstructedWith($accountRepository->getWrappedObject());
     $this->add($oClient->getWrappedObject(), $oBankAccountWrapped);
 }
Пример #2
0
 /**
  * @Then /^system przypisuje numer konta bankowego do klienta$/
  */
 public function systemPrzypisujeNumerKontaBankowegoDoKlienta()
 {
     $this->_clientRegistered->addBankAccount($this->_bankAccount);
 }