public void GetAllDivision() { bool actual = DivisionHelper.GetAll().Count > 0; bool expected = true; Assert.AreEqual(expected, actual); }
public HttpResponseMessage GetAllDivisiones() { List <Division> list = DivisionHelper.GetAll(); bool TheresData = list.Count > 0; if (!TheresData) { throw new HttpResponseException(HttpStatusCode.NoContent); } return(Request.CreateResponse(HttpStatusCode.OK, list)); }