private void GivenAnElementTransformationMatcher(ElementTransformerActionsByMatch elementTransformerActionsByMatch) { Context.Target.AddTranformationBuilder( new StubElementTransformerActionsByMatchBuilder().With( elementTransformerActionsByMatch)); }
private IEnumerable<IElementTransformerAction> GetFinalActions(ElementTransformerActionsByMatch[] matches) { return matches.SelectMany(x => x.FinalElementTransformerActions); }
public StubElementTransformerActionsByMatchBuilder With(ElementTransformerActionsByMatch elementTransformerActionsByMatch) { this._elementTransformerActionsByMatch = elementTransformerActionsByMatch; return this; }
private IEnumerable<IElementTransformerAction> GetActions(ElementTransformerActionsByMatch[] allMatches) { return allMatches.SelectMany(x => x.ElementTransformerActions); }