Пример #1
0
        public IEnumerable <Match> Get()
        {
            var numMatches = 5;

            var gen = new MatchGenerator();

            var matches = new List <Match>(numMatches);

            for (int i = 0; i < numMatches; i++)
            {
                matches.Add(gen.GenerateMatch());
            }

            return(matches);
        }