public HttpResponseMessage Get() { try { var result = CalendarBusiness.Get(); return(Request.CreateResponse(HttpStatusCode.OK, result)); } catch (Exception exc) { var logId = LogBusiness.Error(exc); return(Request.CreateResponse(HttpStatusCode.InternalServerError, new ErrorModel(logId))); } }
public void CalendarGetTest() { var actual = CalendarBusiness.Get(); Assert.IsTrue(actual.Count() > 0); }