internal InvokePipeline(PipelineContext context, Source[] source) : base(context, source) { _Runspace = new RunspaceContext(Context); HostHelper.ImportResource(Source, _Runspace); _Builder = HostHelper.GetDocumentBuilder(_Runspace, Source); _Processor = new MarkdownProcessor(); _Completed = new List <IDocumentResult>(); }
public void GetDocumentBuilder() { var source = GetSource(); var context = new RunspaceContext(new PipelineContext(GetOption(), null, null, null, null, null)); HostHelper.ImportResource(source, context); var actual = HostHelper.GetDocumentBuilder(context, source); Assert.Equal(9, actual.Length); }
internal InvokeRulePipeline(PipelineContext context, Source[] source, PipelineReader reader, PipelineWriter writer, RuleOutcome outcome) : base(context, source, reader, writer) { HostHelper.ImportResource(source: Source, context: context); _RuleGraph = HostHelper.GetRuleBlockGraph(source: Source, context: context); RuleCount = _RuleGraph.Count; if (RuleCount == 0) { Context.WarnRuleNotFound(); } _Outcome = outcome; _Summary = new Dictionary <string, RuleSummaryRecord>(); _ResultFormat = context.Option.Output.As.Value; _SuppressionFilter = new RuleSuppressionFilter(context.Option.Suppression); }
internal GetPipeline(PipelineContext context, Source[] source) : base(context, source) { _Runspace = new RunspaceContext(Context); HostHelper.ImportResource(Source, _Runspace); }
internal GetRulePipeline(PipelineContext context, Source[] source, PipelineReader reader, PipelineWriter writer, bool includeDependencies) : base(context, source, reader, writer) { HostHelper.ImportResource(source: Source, context: context); _IncludeDependencies = includeDependencies; }