[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)); }
[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)); }
//checks if user(password&username) exsists in the database public bool exist(Backend.User user) { return(itsDAL.Contains(user)); }