コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:CSF.Screenplay.Reporting.Builders.ReportFactory"/> class.
 /// </summary>
 /// <param name="metadataFactory">Metadata factory.</param>
 public ReportFactory(IGetsReportMetadata metadataFactory)
 {
     if (metadataFactory == null)
     {
         throw new ArgumentNullException(nameof(metadataFactory));
     }
     this.metadataFactory = metadataFactory;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:CSF.Screenplay.Reporting.JsonScenarioRenderer"/> class.
 /// </summary>
 /// <param name="writer">Writer.</param>
 /// <param name="metadataFactory">A report metadata factory</param>
 public JsonScenarioRenderer(IWritesReportOneScenarioAtATime writer, IGetsReportMetadata metadataFactory = null)
 {
     if (writer == null)
     {
         throw new ArgumentNullException(nameof(writer));
     }
     this.writer          = writer;
     this.metadataFactory = metadataFactory ?? new ReportMetadataFactory();
     scenarioTasks        = new HashSet <Task>();
 }