/**
  * @param mixed $loanAmount
  *
  * @expectedException TypeError
  *
  * @dataProvider typeErrorDataProvider
  */
 public function testResolveLoanRequestTypeErrorException($loanAmount)
 {
     $loanRequest = new LoanApplicationRequest(new BankCustomer('Unit Test Customer'), $loanAmount);
     $this->loanSystem->applyForLoan($loanRequest);
 }
 /**
  * @inheritDoc
  */
 public function applyForLoan(float $amount, LoanSystem $loanSystem) : LoanApplicationResponse
 {
     $loanRequest = new LoanApplicationRequest($this, $amount);
     return $loanSystem->resolveLoanRequest($loanRequest);
 }