Exemple #1
0
        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");
        }
Exemple #2
0
 public void SetUp()
 {
     _authenticator = new Authenticator();
 }