public void GroupGetGroupDownTest() { Guid userId = new Guid("1538694e-12f2-e111-a89d-00155d02e702"); Guid groupSid = new Guid("aeab580d-df16-42d5-9714-e4e581fc8134"); int systemId = 102; var actual = GroupBusiness.GetGroupDown(userId, systemId, groupSid); Assert.IsTrue(actual.Count() > 0); }
public HttpResponseMessage Get(int systemId) { try { var result = GroupBusiness.GetGroupDown(claimData.UserId, systemId, claimData.GroupId); return(Request.CreateResponse(HttpStatusCode.OK, result)); } catch (Exception exc) { var logId = LogBusiness.Error(exc); return(Request.CreateResponse(HttpStatusCode.InternalServerError, logId)); } }