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); }
/** * @Then /^system przypisuje numer konta bankowego do klienta$/ */ public function systemPrzypisujeNumerKontaBankowegoDoKlienta() { $this->_clientRegistered->addBankAccount($this->_bankAccount); }