예제 #1
0
 public void WhenTheRegistrationValidationIsRun()
 {
     _registrationModel = new RegistrationModel(_registrationValidators);
     RegistrationSucceeded = _registrationModel.IsValid();
 }
예제 #2
0
 public ActionResult Register(RegistrationModel registrationModel)
 {
     ViewBag.RegistrationSucceeded = registrationModel.IsValid();
     return View(registrationModel);
 }