public void GetUserTableIdTest()
        {
            cgUserDB = new CGUserDB();
            CGUserModel testUser = cgUserDB.GetById("Test");
            var         attempt  = cgUserDB.GetUserTableId("Test");

            Assert.AreEqual(attempt, testUser.TableID);
        }
        public static CGUserModel ConvertFromCGUserToCGUserModel(CGUser cGUser)
        {
            ICGUserDBIF userDB      = new CGUserDB();
            CGUserModel cGUserModel = new CGUserModel()
            {
                Id         = cGUser.Id,
                UserName   = cGUser.UserName,
                Email      = cGUser.Email,
                userType   = (CGUserModel.UserType)cGUser.userType,
                userStatus = (CGUserModel.UserStatus)cGUser.userStatus,
                Health     = cGUser.Health
            };

            if (userDB.GetUserTableId(cGUser.Id) != 0)
            {
                cGUserModel.TableID = userDB.GetUserTableId(cGUser.Id);
            }

            return(cGUserModel);
        }