public ActionResult Create(ExpectedResult expectedResult)
 {
     try
     {
         _dbExpectedResultRepository.Insert(expectedResult);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View(expectedResult));
     }
 }
 public int Insert(ExpectedResult expectedResult)
 {
     return(_dbRepository.Insert(expectedResult.TestId, expectedResult.ExpectedResultTypeId,
                                 expectedResult.AssertTypeId, expectedResult.ExpectedValue, expectedResult.ResultIndex));
 }