public string Visit(FeatureSetTopic featureSet, Topic nextTopic, Topic previousTopic) { if(featureSet.CustomTopic != null) { FeatureTemplate featureTemplate = new FeatureTemplate(featureSet.CustomTopic, nextTopic, previousTopic); return featureTemplate.TransformText(); } FeatureSetTemplate featureSetTemplate = new FeatureSetTemplate(featureSet, nextTopic, previousTopic); return featureSetTemplate.TransformText(); }
public FeatureSetTemplate(FeatureSetTopic featureSet, Topic nextTopic, Topic previousTopic) { this.featureSet = featureSet; this.nextTopic = nextTopic; this.previousTopic = previousTopic; }