Ejemplo n.º 1
0
        public void When_Selecting_A_Candidate()
        {
            var candidates = new List<Candidate>();

            //create 50 candidates
            _candidateCount = 50;
            for (int i = 0; i < _candidateCount; i++)
            {
                candidates.Add(new Candidate(new Name(string.Format("Person{0}Firstname", i), string.Format("Person{0}Lastname", i))));
            }

            _selector = new CandidateSelector(candidates);
        }
Ejemplo n.º 2
0
 private void PrepareForSelection()
 {
     IEnumerable<Candidate> candidates = _candidateListBuilder.Build("data.txt");
     _candidateSelector = new CandidateSelector(candidates);
 }