Exemple #1
0
        public void PagarEmprestimoParcial()
        {
            var participante = participanteService.ListarParticipantesPorNome("daniel").ElementAt(0);
            var emprestimo   = emprestimoService.ListarEmprestimosParticipante(participante, false).ElementAt(0);

            emprestimo.ValorPago = 1000;
            pagamentoService.RegistrarPagamento(DateTime.Today, new List <Emprestimo>()
            {
                emprestimo
            });
        }
        public void ListarEmprestimos()
        {
            var participante = participanteService.ListarParticipantesPorNome("daniel").ElementAt(0);
            var emprestimos  = emprestimoService.ListarEmprestimosParticipante(participante, true);

            Emprestimo emprestimo = null;

            if (emprestimos.Count() > 0)
            {
                emprestimo = emprestimos.ElementAt(0);
            }

            Assert.IsNotNull(emprestimo);
        }