//adds a user to database public void Add(Backend.User user) { if (!exist(user)) { itsDAL.Add(user); } }
[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)); }