public void TestRetrieveTodos() { var lstArquivos = _arquivoDadoBrutoService.ObterTodos(); Assert.IsNotNull(lstArquivos); Assert.IsNotNull(lstArquivos.Count() == 2); }
public IEnumerable <ArquivoDadoBrutoViewModel> ObterTodos() { IEnumerable <ArquivoDadoBruto> lstArquivo = _arquivoBrutoService.ObterTodos(); if (lstArquivo == null) { return(null); } return(Mapper.Map <IEnumerable <ArquivoDadoBruto>, IEnumerable <ArquivoDadoBrutoViewModel> >(lstArquivo)); }