Example #1
0
        //BUILDING BLOCKS


        #region //FORMATTING METHODS

        public static string RandomFirstName()
        {
            if (null == FirstNames || FirstNames.Count == 0)
            {
                DataAccessText _dal = new DataAccessText();
                FirstNames = _dal.GetFirstNames();
            }
            string _output = FirstNames[RandomInteger(0, FirstNames.Count - 1)];

            return(_output);
        }
Example #2
0
        public static string RandomCityName()
        {
            if (null == CityNames || CityNames.Count == 0)
            {
                DataAccessText _dal = new DataAccessText();
                CityNames = _dal.GetCityNames();
            }

            string _output = CityNames[RandomInteger(0, CityNames.Count - 1)];

            return(_output);
        }
Example #3
0
        //State
        public static string RandomStateName()
        {
            if (null == StateNames || StateNames.Count == 0)
            {
                DataAccessText _dal = new DataAccessText();
                StateNames = _dal.GetStateNames();
            }

            string _output = StateNames[RandomInteger(0, StateNames.Count - 1)];

            return(_output);
        }
Example #4
0
        public static string RandomLastName()
        {
            if (null == LastNames || LastNames.Count == 0)
            {
                DataAccessText _dal = new DataAccessText();
                LastNames = _dal.GeLastNames();
            }

            string _output = LastNames[RandomInteger(0, LastNames.Count - 1)];

            return(_output);
        }