예제 #1
0
 public JsonDocumentationBuilder(IConfiguration configuration, ITestResults testResults, IFileSystem fileSystem, ILanguageServicesRegistry languageServicesRegistry)
 {
     this.configuration            = configuration;
     this.testResults              = testResults;
     this.fileSystem               = fileSystem;
     this.languageServicesRegistry = languageServicesRegistry;
 }
        public JsonFeatureWithMetaInfo(FeatureNode featureNodeTreeNode, ILanguageServicesRegistry languageServicesRegistry, TestResult result)
        {
            var jsonMapper = new JsonMapper(languageServicesRegistry);

            this.Feature        = jsonMapper.Map(featureNodeTreeNode.Feature);
            this.RelativeFolder = featureNodeTreeNode.RelativePathFromRoot;
            this.Result         = jsonMapper.Map(result);
        }
 public WordScenarioOutlineFormatter(WordStepFormatter wordStepFormatter, WordTableFormatter wordTableFormatter, IConfiguration configuration, ITestResults testResults, ILanguageServicesRegistry languageServicesRegistry)
 {
     this.wordStepFormatter        = wordStepFormatter;
     this.wordTableFormatter       = wordTableFormatter;
     this.configuration            = configuration;
     this.testResults              = testResults;
     this.languageServicesRegistry = languageServicesRegistry;
 }
예제 #4
0
 public ExcelScenarioOutlineFormatter(
     ExcelStepFormatter excelStepFormatter,
     ExcelTableFormatter excelTableFormatter,
     IConfiguration configuration,
     ITestResults testResults,
     ILanguageServicesRegistry languageServicesRegistry)
 {
     this.excelStepFormatter       = excelStepFormatter;
     this.excelTableFormatter      = excelTableFormatter;
     this.configuration            = configuration;
     this.testResults              = testResults;
     this.languageServicesRegistry = languageServicesRegistry;
 }
예제 #5
0
 public HtmlScenarioOutlineFormatter(
     HtmlStepFormatter htmlStepFormatter,
     HtmlDescriptionFormatter htmlDescriptionFormatter,
     HtmlTableFormatter htmlTableFormatter,
     HtmlImageResultFormatter htmlImageResultFormatter,
     ITestResults testResults,
     ILanguageServicesRegistry languageServicesRegistry)
 {
     this.htmlStepFormatter        = htmlStepFormatter;
     this.htmlDescriptionFormatter = htmlDescriptionFormatter;
     this.htmlTableFormatter       = htmlTableFormatter;
     this.htmlImageResultFormatter = htmlImageResultFormatter;
     this.testResults = testResults;
     this.languageServicesRegistry = languageServicesRegistry;
     this.xmlns = HtmlNamespace.Xhtml;
 }
 public ScenarioOutlineToJsonScenarioOutlineMapper(ILanguageServicesRegistry languageServicesRegistry)
 {
     this.resultMapper  = new TestResultToJsonTestResultMapper();
     this.stepMapper    = new StepToJsonStepMapper();
     this.exampleMapper = new ExampleToJsonExampleMapper(languageServicesRegistry);
 }
 public ExampleToJsonExampleMapper(ILanguageServicesRegistry languageServicesRegistry)
 {
     this.languageServicesRegistry = languageServicesRegistry;
     this.tableMapper = new TableToJsonTableMapper();
 }
 public FeatureToJsonFeatureMapper(ILanguageServicesRegistry languageServicesRegistry)
 {
     this.scenarioMapper        = new ScenarioToJsonScenarioMapper();
     this.scenarioOutlineMapper = new ScenarioOutlineToJsonScenarioOutlineMapper(languageServicesRegistry);
     this.resultMapper          = new TestResultToJsonTestResultMapper();
 }
예제 #9
0
 public Configuration(ILanguageServicesRegistry languageServicesRegistry)
 {
     this.testResultsFiles = new List <FileInfoBase>();
     this.Language         = languageServicesRegistry.DefaultLanguage;
 }
예제 #10
0
 public JsonFeatureWithMetaInfo(FeatureNode featureNodeTreeNode, ILanguageServicesRegistry languageServicesRegistry)
     : this(featureNodeTreeNode, languageServicesRegistry, TestResult.NotProvided)
 {
 }
예제 #11
0
 public JsonFeatureWithMetaInfo(FeatureNode featureNodeTreeNode, ILanguageServicesRegistry languageServicesRegistry)
     : this(featureNodeTreeNode, languageServicesRegistry, default(TestResult))
 {
 }
예제 #12
0
 public JsonMapper(ILanguageServicesRegistry languageServicesRegistry)
 {
     this.languageServicesRegistry = languageServicesRegistry;
 }