예제 #1
0
        public void CheckUsernameExistance()
        {
            Administrator user = administratorDAO.Add(new Administrator("USERNAME", "PASSWORD"));

            Assert.AreEqual(true, administratorDAO.CheckUsernameExistance("USERNAME", user.ID + 1));
            Assert.AreEqual(false, administratorDAO.CheckUsernameExistance("USERNAME", user.ID));
        }