Пример #1
0
        public Plan BuildPlan(DesignModel designModel, int featureCount)
        {
            var planFeatures = Enumerable.Range(0, featureCount)
                               .Select(index => BuildPlanFeature(index, designModel)).ToImmutableList();

            return(new Plan(planFeatures));
        }
Пример #2
0
        private PlanFeature BuildPlanFeature(int index, DesignModel designModel)
        {
            var feature = designModel.Features[index % designModel.Features.Count];

            return(BuildPlanFeature(feature));
        }