public IEmprestimo Emprestar(IPessoa pessoa, ILivro livro, IEmprestimo emprestimo) { int id = 1; DateTime dataEmprestimo = DateTime.Now; emprestimo.RealizarEmprestimo(id, dataEmprestimo, pessoa, livro); return(emprestimo); }
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; }
public IEmprestimo Devolver(IEmprestimo emprestimo, int id, List <IEmprestimo> listEmprestimo) { return(emprestimo.BuscarEmprestimo(id, listEmprestimo)); }
public IEmprestimo BuscarEmprestimoPorPessoa(IEmprestimo emprestimo, IPessoa pessoa, List <IEmprestimo> listEmprestimo) { return(emprestimo.BuscarEmprestimoPorPessoa(pessoa, listEmprestimo)); }
public IEmprestimo BuscarEmprestimoPorLivro(IEmprestimo emprestimo, ILivro livro, List <IEmprestimo> listEmprestimo) { return(emprestimo.BuscarEmprestimoPorLivro(livro, listEmprestimo)); }