Example #1
0
        private int[] CreateUsersWithCashGain(int numOfUsers)
        {
            int[]  userIds = new int[numOfUsers];
            int    maxInt  = Int32.MaxValue;
            Random rand    = new Random();

            //setup users
            for (int i = 0; i < userIds.Length; i++)
            {
                int id = rand.Next();
                userIds[i] = id;
                RegisterUserToDB(id);
                int currMoney = UserBridge.GetUserMoney(id);
                UserBridge.ChangeUserHighestCashGain(id, maxInt - currMoney);
                maxInt--;
            }
            return(userIds);
        }