public void GetAllErrorMessages_returns_list_of_all_errorcodes() { IErrorProcess process = ProcessFactory.GetErrorProcess(); List <ErrorCode> errorMessages = process.GetAllErrorCodes(); Assert.AreEqual(37, errorMessages.Count); }
public JsonResult Load() { List <ErrorCode> errorCodes = ProcessFactory.GetErrorProcess().GetAllErrorCodes(); return(Json(errorCodes, JsonRequestBehavior.AllowGet)); }