public void LoginExistingUserIncorrectPasswordTest() { bool actualResult = true; bool expectedResult = false; DbLogin dbLoginObj = new DbLogin(); actualResult = dbLoginObj.Login("*****@*****.**", "defaultIncorrect"); Assert.AreEqual(expectedResult, actualResult); }
public void LoginNonExistingUserTest() { bool actualResult = true; bool expectedResult = false; DbLogin dbLoginObj = new DbLogin(); actualResult = dbLoginObj.Login("*****@*****.**", "default"); Assert.AreEqual(expectedResult, actualResult); }
public string Login(string email, string password) { DbLogin dbLoginObj = new DbLogin(); return dbLoginObj.Login(email, CreateHash(password.Trim(), dbLoginObj.GetSalt(email).Trim())); }