示例#1
0
        [Test] // #18
        public void r()
        {      //@ check user creation
            User_Data ud = new User_Data();

            Backend.User u = new Backend.User("a", "a", "112233");
            ud.Add(u);
            Assert.IsTrue(ud.Contains(u));
        }
示例#2
0
        [Test] // #20
        public void t()
        {      //@ check delete user
            User_Data ud = new User_Data();

            Backend.User u = new Backend.User("a", "a", "112233");
            ud.Remove(u);
            Assert.IsTrue(!ud.Contains(u));
        }
示例#3
0
 //checks if user(password&username) exsists in the database
 public bool exist(Backend.User user)
 {
     return(itsDAL.Contains(user));
 }