public static void TestProcess()
 {
     users = new List<UserInfo>();
     ReadFileToUsers(users);
     var support = new SupportRequest(users);
     support.LogOnAndAdd();
 }
        public static void ProductionProcess()
        {
            ServicePointManager.DefaultConnectionLimit = 50;
            expiredUsers = new List<UserInfo>();
            waitForConfirmed = new List<UserInfo>();
            confirmedUsers = new List<UserInfo>();
            users = new List<UserInfo>();

            //read bud.txt file to users
            if (!Directory.Exists("\\Result"))
            {
                Directory.CreateDirectory(".\\Result");
            }

            ReadFileToUsers(users);

            //cycle users to requestjson
            BudNetRequest budnetRequest;
            string result = "";
            for (var i = 0; i < users.Count; i++)
            {
                var tempResult = "";
                budnetRequest = new BudNetRequest(users[i]);
                try
                {
                    tempResult = budnetRequest.RequestJson();
                }
                catch (Exception e)
                {
                    if (e is ExperiedException)
                        expiredUsers.Add(users[i]);
                    else
                        //include AnalizingException UnknowLoginException and other real unknown error.
                        Program.WriteLog(e.Message, users[i]);
                }
                result += tempResult;
                Console.Write(tempResult);
            }

            ChangePassword();

            result += InspectChangedUser(waitForConfirmed);
            result = AnalizeCommaTextToHtml(result);

            if (confirmedUsers.Count > 0)
            {
                WriteNewBudNetUserFile();
                var support = new SupportRequest(confirmedUsers);
                try
                {
                    support.LogOnAndAdd();
                }
                catch (Exception e)
                {
                    WriteLog(e.Message);
                }

            }
            WriteTodayFile(result);
            Console.WriteLine("Input Any Key to Exit");
            Console.ReadKey();
        }