Esempio n. 1
0
        public IActionResult Register(UserModel user)
        {
            UserDBModel db    = new UserDBModel();
            UserModel   luser = db.UserRegister(user.fUsername, user.fPassword);

            return(RedirectToAction("../Home/Index"));
        }
Esempio n. 2
0
        public void RegisterTest()
        {
            UserDBModel db = new UserDBModel();
            //Model that contains user details
            string email    = "*****@*****.**";
            string password = "******";

            UserModel um = db.UserRegister(email, password);

            Assert.AreEqual(um.fUsername, email);
            Assert.AreEqual(um.fPassword, password);
        }