public Plan BuildPlan(DesignModel designModel, int featureCount) { var planFeatures = Enumerable.Range(0, featureCount) .Select(index => BuildPlanFeature(index, designModel)).ToImmutableList(); return(new Plan(planFeatures)); }
private PlanFeature BuildPlanFeature(int index, DesignModel designModel) { var feature = designModel.Features[index % designModel.Features.Count]; return(BuildPlanFeature(feature)); }