public void Aggregated() { var nodeParser1 = Helper.FakeParser <INodeParser>("c"); var nodeParser2 = Helper.FakeParser <INodeParser>("d"); var sut = ElementParserSettings.Aggregated(nodeParser1, nodeParser2); sut.ShouldBeAggregated(nodeParser1, nodeParser2); }
public BalloonTextNodeParserBase( IElementParser elementParser, IBalloonChildNodeParser childParser, ISetNodeParser setNodeParser, IUnsetNodeParser unsetNodeParser ) { this.elementParser = elementParser; this.childParser = childParser; Settings = ElementParserSettings.AggregatedNonRepeat(childParser); AggregationSettings = ElementParserSettings.Aggregated(childParser, setNodeParser, unsetNodeParser); }
public PersonNodeParser( IElementParser elementParser, IPersonTextNodeParser personTextNodeParser, ISpeechNodeParser speechNodeParser, IThoughtNodeParser thoughtNodeParser, IMoodNodeParser moodNodeParser, IPauseNodeParser pauseNodeParser, ISetNodeParser setNodeParser, IUnsetNodeParser unsetNodeParser ) { this.elementParser = elementParser; this.childParser = personTextNodeParser; Settings = ElementParserSettings.AggregatedNonRepeat(childParser); AggregationSettings = ElementParserSettings.Aggregated( speechNodeParser, thoughtNodeParser, moodNodeParser, pauseNodeParser, setNodeParser, unsetNodeParser ); }