public RetornoGenerico LerArquivoRetorno(List <string> linhasArquivo) { if (linhasArquivo == null || linhasArquivo.Any() == false) { throw new ApplicationException("Arquivo informado é inválido."); } /* Identifica o layout: 400 */ if (linhasArquivo.First().Length == 400) { var leitor = new LeitorRetornoCnab400BRB(linhasArquivo); var retornoProcessado = leitor.ProcessarRetorno(); var objRetornar = new RetornoGenerico(retornoProcessado); return(objRetornar); } throw new Exception("Arquivo de RETORNO com " + linhasArquivo.First().Length + " posições, não é suportado."); }
public void TestTrailerArquivoRetornoCnab400BancoBRB() { LeitorRetornoCnab400BRB leitor = new LeitorRetornoCnab400BRB(null); }
public void TestRegistroArquivoRetornoCnab400BancoBRB() { LeitorRetornoCnab400BRB leitor = new LeitorRetornoCnab400BRB(null); }