Exemplo n.º 1
0
        public IEmprestimo Emprestar(IPessoa pessoa, ILivro livro, IEmprestimo emprestimo)
        {
            int      id             = 1;
            DateTime dataEmprestimo = DateTime.Now;

            emprestimo.RealizarEmprestimo(id, dataEmprestimo, pessoa, livro);

            return(emprestimo);
        }
Exemplo n.º 2
0
 public ATMFacade(string numeroCartao)
 {
     _cartao = new Cartao();
     if (_cartao.ValidarCartao(numeroCartao))
     {
         _correntista = _cartao.ObterCorrentista();
         _conta       = new Conta(_correntista);
     }
     _deposito   = new Deposito(_conta);
     _emprestimo = new Emprestimo(_conta);
     _pagamento  = new Pagamento(_conta);
     _saque      = new Saque(_conta);
 }
 public EmprestimoApp(IEmprestimo IEmprestimo)
 {
     _IEmprestimo = IEmprestimo;
 }
Exemplo n.º 4
0
 public IEmprestimo Devolver(IEmprestimo emprestimo, int id, List <IEmprestimo> listEmprestimo)
 {
     return(emprestimo.BuscarEmprestimo(id, listEmprestimo));
 }
Exemplo n.º 5
0
 public IEmprestimo BuscarEmprestimoPorPessoa(IEmprestimo emprestimo, IPessoa pessoa, List <IEmprestimo> listEmprestimo)
 {
     return(emprestimo.BuscarEmprestimoPorPessoa(pessoa, listEmprestimo));
 }
Exemplo n.º 6
0
 public IEmprestimo BuscarEmprestimoPorLivro(IEmprestimo emprestimo, ILivro livro, List <IEmprestimo> listEmprestimo)
 {
     return(emprestimo.BuscarEmprestimoPorLivro(livro, listEmprestimo));
 }