Ejemplo n.º 1
0
 /**
  * @param BankAccount $source
  * @param BankAccount $target
  */
 public function confirm(BankAccount $source, BankAccount $target)
 {
     $this->_idAccountNumberSource = $source->getIdAccount();
     $this->_idAccountNumberTarget = $target->getIdAccount();
     $this->_currencyCode = $this->_exchangeRate->getCurrencyCode();
     $this->_course = $this->_exchangeRate->getCourse();
 }
 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
 /**
  * @Then /^wyswietla mi sie kurs$/
  */
 public function wyswietlaMiSieKurs()
 {
     $this->exchangeRate = new ExchangeRate(new Currency('EUR'), new Amount(3.5));
     assert(3.5 == $this->exchangeRate->getCourse(), 'kurs nie jest zgodny z oczekiwanym');
 }