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); } }
public void ShouldGetNotNullList() { IList <string> agrupamentos = _repositorio.GetGroupsByOffice(); Assert.NotNull(agrupamentos); }