コード例 #1
0
        public void GetAllDivision()
        {
            bool actual   = DivisionHelper.GetAll().Count > 0;
            bool expected = true;

            Assert.AreEqual(expected, actual);
        }
コード例 #2
0
        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));
        }