static void Main(string[] args)
        {
            var connectionRetriever = new ConsoleCdsConnectionRetriever();
            var serviceManager      = connectionRetriever.GetCdsConnection();
            var executable          = new RandomContactsGenerator(serviceManager);

            executable.Execute();
        }
Ejemplo n.º 2
0
        private void AddContactsList(object sender)
        {
            var contactsGenerator = new RandomContactsGenerator();
            var randomContacts    = contactsGenerator.GenerateContacts(10);

            // AddRange not working - fix
            foreach (var contact in randomContacts)
            {
                Contacts.Add(contact);
            }
        }