public void TestGetIssueTypes()
        {
            using (SqlConnection connection = new SqlConnection(Properties.Settings.Default.SQLConnectionString))
            {
                connection.Open();

                DeleteTables(connection);

                int    ID1   = -1;
                string name1 = "Test";
                Create(connection, ID1, name1);

                int    ID2   = -2;
                string name2 = "Test";
                Create(connection, ID2, name2);

                IssueTypeService      issueTypeService  = new IssueTypeService();
                IList <IssueTypeItem> issueTypeItemList = issueTypeService.GetIssueTypes();

                Assert.AreEqual(issueTypeItemList.Count, 2);
            }
        }
 public JsonResult IssueTypeList()
 {
     return(Json(service.GetIssueTypes(), JsonRequestBehavior.AllowGet));
 }