Ejemplo n.º 1
0
        public Person[] GetPeopleData(int value)
        {
            List <Person> people  = new List <Person>();
            var           creator = new PeopleConstants();

            for (int i = 0; i < value; i++)
            {
                var person = creator.CreatePerson(i);
                people.Add(person);
            }

            return(people.ToArray());
        }
Ejemplo n.º 2
0
        public Address[] GetAddressData(int value)
        {
            List<Address> addresses = new List<Address>();
            var creator = new PeopleConstants();
            for (int i = 0; i < value; i++)
            {
                var addy = creator.CreateAddress(i);
                addresses.Add(addy);

            }

            return addresses.ToArray();
        }
Ejemplo n.º 3
0
        public PersonMajor[] GetCompletePeople(int value)
        {
            List <PersonMajor> people = new List <PersonMajor>();
            var creator = new PeopleConstants();

            for (int i = 0; i < value; i++)
            {
                var person = creator.CreateMajorPerson(i);
                people.Add(person);
            }

            return(people.ToArray());
        }
        public Address[] GetAddressData(int value)
        {
            List <Address> addresses = new List <Address>();
            var            creator   = new PeopleConstants();

            for (int i = 0; i < value; i++)
            {
                var addy = creator.CreateAddress(i);
                addresses.Add(addy);
            }

            return(addresses.ToArray());
        }