public void TestSaveUser()
        {
            Repos<User> repos = new Repos<User>();
            repos.Save(new User(111, "Name"));
            int id = 111;
            string username = "******";

            Assert.AreEqual(id, repos.Get(0).Id);
            Assert.AreEqual(username, repos.Get(0).Username);
        }
        public void TestGetUserId()
        {
            Repos<User> repos = new Repos<User>();
            int id = 111;

            repos.Save(new User(111));
            User checkingUser = new User(id);
            User realUser = repos.Get(0);

            Assert.AreEqual(checkingUser.Id, realUser.Id);
            Assert.IsNull(realUser.Username);
        }
        public void TestGetUserName()
        {
            Repos<User> repos = new Repos<User>();
            string username = "******";

            repos.Save(new User("Name"));
            User checkingUser = new User(username);
            User realUser = repos.Get(0);

            Assert.AreEqual(checkingUser.Id, realUser.Id);
            Assert.AreEqual(checkingUser.Username, realUser.Username);
        }
        public void TestGetUserFull()
        {
            Repos<User> repos = new Repos<User>();
            int id = 111;
            string username = "******";

            repos.Save(new User(111, "Name"));
            User checkingUser = new User(id, username);
            User realUser = repos.Get(0);

            Assert.AreEqual(checkingUser.Id, realUser.Id);
            Assert.AreEqual(checkingUser.Username, realUser.Username);
        }