MakeMatches() публичный Метод

public MakeMatches ( List employees, int matchesToMake ) : List
employees List
matchesToMake int
Результат List
        public void MakeMatches(int employeesToSupply, int matchesToMake, int matchesMade)
        {
            var employees = new List<Employee>();
            for (int i = 0; i < employeesToSupply; i++)
                employees.Add(GetRandomEmployee());

            var matchArranger = new MatchArranger(GetStubbedMatchLogger(), GetStubbedMatchAlerter());
            var matches = matchArranger.MakeMatches(employees, matchesToMake);

            Assert.AreEqual(matchesMade, matches.Count());
        }
        public void DoNotMatchEmployeesFromDifferentStates(int matchesToMake
            ,int matchesMade
            ,int employeesFromNewYork
            ,int employeesFromCalifornia)
        {
            var employees = new List<Employee>();

            for (int i = 0; i < employeesFromNewYork; i++)
                employees.Add(GetRandomEmployee("NY"));

            for (int i = 0; i < employeesFromCalifornia; i++)
                employees.Add(GetRandomEmployee("CA"));

            var matchArranger = new MatchArranger(GetStubbedMatchLogger(), GetStubbedMatchAlerter());
            var matches = matchArranger.MakeMatches(employees, matchesToMake);

            Assert.AreEqual(matchesMade, matches.Count());
        }