public async Task CheckPassword() { IUserDao userDao = new AdoUserDao(DefaultConnectionFactory.FromConfiguration(_connectionStringConfigName)); bool verify = await userDao.CheckPasswordAsync("max.müller", "max8"); Assert.IsTrue(verify); }
public async Task UpdatePassword() { IUserDao userDao = new AdoUserDao(DefaultConnectionFactory.FromConfiguration(_connectionStringConfigName)); bool change1 = await userDao.UpdatePasswordAsync("max.müller", "TESTPASSWORD"); Assert.IsTrue(change1); bool check1 = await userDao.CheckPasswordAsync("max.müller", "TESTPASSWORD"); Assert.IsTrue(check1); bool change2 = await userDao.UpdatePasswordAsync("max.müller", "max8"); Assert.IsTrue(change2); bool check2 = await userDao.CheckPasswordAsync("max.müller", "max8"); Assert.IsTrue(check2); }