Exemplo n.º 1
0
        private static List <Debator> GetDebators(DebateMediator debateMediator, params string[] names)
        {
            List <string> processedNames;

            if (names.Length > Arguments.Count)
            {
                processedNames = names.Take(Arguments.Count).ToList();
            }
            else
            {
                processedNames = names.ToList();
            }

            var debators = new List <Debator>();

            foreach (var name in processedNames)
            {
                var debator = new Debator(debateMediator, name, Arguments);
                debateMediator.RegisterDebator(debator);
                debators.Add(debator);
            }

            return(debators);
        }
Exemplo n.º 2
0
 public void RegisterDebator(Debator debator)
 {
     Debators.Add(debator);
 }