public void WhenTheRegistrationValidationIsRun() { _registrationModel = new RegistrationModel(_registrationValidators); RegistrationSucceeded = _registrationModel.IsValid(); }
public ActionResult Register(RegistrationModel registrationModel) { ViewBag.RegistrationSucceeded = registrationModel.IsValid(); return View(registrationModel); }