Exemplo n.º 1
0
        public void Start()
        {
            var configuration = new Configuration(configurationReader);
            var customers     = customerFinder.Find(configuration);

            inviter.Invite(customers);
        }
        public IEnumerable <Customer> Find(Configuration configuration)
        {
            var customerList = new SortedDictionary <int, Customer>();
            var unsortedList = customerFinder.Find(configuration);

            foreach (var unsortedListItem in unsortedList)
            {
                customerList.Add(unsortedListItem.Id, unsortedListItem);
            }

            foreach (var customerListItem in customerList)
            {
                yield return(customerListItem.Value);
            }
        }