Пример #1
0
    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);
    }
Пример #2
0
 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);
 }
Пример #3
0
    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
            );
    }