public IActionResult Register(UserModel user) { UserDBModel db = new UserDBModel(); UserModel luser = db.UserRegister(user.fUsername, user.fPassword); return(RedirectToAction("../Home/Index")); }
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); }