Esempio n. 1
0
        private static void CreateMemberList(Club club)
        {
            RandomNameGenerator gen = new RandomNameGenerator();

            int randomNumber = gen.GenerateRandomNumber(12, 56);

            club.Members = new List <Member>();

            for (int i = 0; i < randomNumber; ++i)
            {
                club.Members.Add(new Member(gen.getRandomFirstName(), gen.getRandomLastName(), "Unknown", gen.GenerateRandomNumber())
                {
                    Club = club
                });
            }
        }