public TestClass( IElementParser elementParser, ITextSourceParser textSourceParser, IBalloonTextNodeParser balloonTextNodeParser, IChoiceNodeParser choiceNodeParser ) : base(elementParser, textSourceParser, balloonTextNodeParser, choiceNodeParser) { }
public BalloonChildNodeParserBase( IElementParser elementParser, ITextSourceParser textSourceParser, IBalloonTextNodeParser balloonTextNodeParser, IChoiceNodeParser choiceNodeParser ) { this.elementParser = elementParser; this.textSourceParser = textSourceParser; this.childParser = balloonTextNodeParser; Settings = ElementParserSettings.AggregatedNonRepeat(balloonTextNodeParser); AggregationSettings = ElementParserSettings.AggregatedNonRepeat(choiceNodeParser); }
public BalloonChildNodeParserBaseTests() { textSource = A.Dummy <ITextSource>(); var textSourceParserResult = A.Fake <ITextSourceParserResult>(i => i.Strict()); A.CallTo(() => textSourceParserResult.IsError).Returns(false); A.CallTo(() => textSourceParserResult.TextSource).Returns(textSource); textSourceParser = A.Fake <ITextSourceParser>(i => i.Strict()); A.CallTo(() => textSourceParser.Parse(A <string> .Ignored)).Returns(textSourceParserResult); elementParser = A.Fake <IElementParser>(i => i.Strict()); balloonTextNodeParser = Helper.FakeParser <IBalloonTextNodeParser>("xyz"); A.CallTo(() => balloonTextNodeParser.BalloonType).Returns(balloonType); choiceNodeParser = Helper.FakeParser <IChoiceNodeParser>("choice"); sut = new (elementParser, textSourceParser, balloonTextNodeParser, choiceNodeParser); }