public void GroupGetTest() { Guid userId = new Guid("1538694e-12f2-e111-a89d-00155d02e702"); int systemId = 219; var actual = GroupBusiness.Get(userId, systemId); Assert.IsTrue(actual.Count() > 0); }
public HttpResponseMessage GetAll() { try { int systemId = Convert.ToInt32(ConfigurationManager.AppSettings[CHAVE_ID_SISTEMA]); var result = GroupBusiness.Get(claimData.UserId, systemId); return(Request.CreateResponse(HttpStatusCode.OK, result)); } catch (Exception exc) { var logId = LogBusiness.Error(exc); return(Request.CreateResponse(HttpStatusCode.InternalServerError, new ErrorModel(logId))); } }