Пример #1
0
 public ActionResult GetCountByEscritorio()
 {
     try
     {
         IList <string> resultado = new List <string>();
         IList <string> lista     = _repositorio.GetGroupsByOffice();
         return(new JsonResult(new { resultado = lista }));
     }
     catch (Exception ex)
     {
         string erro = ex.Message;
         return(null);
     }
 }
Пример #2
0
        public void ShouldGetNotNullList()
        {
            IList <string> agrupamentos = _repositorio.GetGroupsByOffice();

            Assert.NotNull(agrupamentos);
        }