public static void Assert(this Controller controller, HasError error)
 {
     NUnitAssert.AreEqual(error.ErrorMessage, controller.ModelState[error.Key].Errors[0].ErrorMessage);
 }
 public static HasError On(string fieldName)
 {
     var error = new HasError { Key = fieldName };
     return error;
 }