public void CreateObjectTest()
        {
            var user = new User(13, "username", "password", "email");

            Assert.AreEqual(13, user.Id);
            Assert.AreEqual("username", user.Username);
            Assert.AreEqual("password", user.Password);
            Assert.AreEqual("email", user.Email);
        }
        public void CreateNoIdObjectTest()
        {
            var user = new User("username", "password", "email");

            Assert.IsFalse(user.HasId);
        }
 protected bool Equals(User other)
 {
     return string.Equals(Email, other.Email) && string.Equals(Password, other.Password)
            && string.Equals(Username, other.Username);
 }