public ActionResult Create(string email, string password) { var user = new Authenticator().Create(email, password); using (var session = MvcApplication.Store.OpenSession()) { session.Store(user); session.SaveChanges(); } ViewBag.Message = string.Format("Created {0}", email); return View("New"); }
public void SetUp() { _authenticator = new Authenticator(); }