Ejemplo n.º 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);
 }
 function it_is_confirm_correct_exchange(ExchangeRate $exchangeRate, BankAccount $source, BankAccount $desctionatio)
 {
     $this->beConstructedWith($exchangeRate->getWrappedObject(), 12);
     //Todo dodac in and out
     $this->confirm($source->getWrappedObject(), $desctionatio->getWrappedObject());
 }
Ejemplo n.º 3
0
 function it_is_add_bank_account(BankAccount $bankAccount)
 {
     $this->addBankAccount($bankAccount->getWrappedObject());
 }