public ActionResult Match(StringMatchModel model)
 {
     ViewBag.Title = FrontResource.Home_Title;
     if (ModelState.IsValid)
     {
         model.Positions = Factory.String.Match(model.Text, model.SubText);
     }
     else
     {
         model.ErrorMessage = ErrorResource.ModelState_NotValid;
     }
     return View("Index", model);
 }
 public void SetUp()
 {
     ControllerToTest = new HomeController();
     ModelToTest = new StringMatchModel();
 }