コード例 #1
0
ファイル: LoginController.cs プロジェクト: daxko/Usablog
        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");
        }
コード例 #2
0
ファイル: AuthenticatorTests.cs プロジェクト: daxko/Usablog
 public void SetUp()
 {
     _authenticator = new Authenticator();
 }