Example #1
0
        public void BuscarEstabelecimentoTest()
        {
            var tipoEstabelecimento   = _tipoEstabelecimentoRepositorio.GetAll().FirstOrDefault();
            var numeroCep             = "27350000";
            var codigoEstabelecimento = "2289105";

            var lstEstabelecimentos = new A21EstabelecimentoBusiness(_estabelecimentoRepositorio, _tipoEstabelecimentoRepositorio).BuscarEstabelecimento(tipoEstabelecimento, numeroCep, codigoEstabelecimento);

            Assert.True(lstEstabelecimentos.Count > 0);
        }
Example #2
0
 public List <A20TipoEstabelecimento> RetornarTiposEstabelecimento()
 {
     try
     {
         return(_tipoEstabelecimentoRepositorio.GetAll().ToList());
     }
     catch (Exception)
     {
         return(null);
     }
 }