Beispiel #1
0
        public void User_UserGetsEnabledWhenCreated()
        {
            User user = new User().SetPassword("password");
            user.Enabled = true;

            Assert.IsTrue(user.Enabled);
        }
Beispiel #2
0
        public ActionResult CreateUser(User user)
        {
            user = user.SetPassword("nordis");
            RavenSession.Store(user);

            return View(user);
        }
Beispiel #3
0
        public void User_CanSetAndValidatePassword()
        {
            User user = new User().SetPassword("password");

            Assert.IsTrue(user.ValidatePassword("password"));
        }