Table of Contents

Class ReportConverter

Namespace
CSF.Screenplay.JsonToHtmlReport
Assembly
CSF.Screenplay.JsonToHtmlReport.dll

Provides functionality to convert JSON reports to HTML format.

public class ReportConverter : IConvertsReportJsonToHtml
Inheritance
ReportConverter
Implements
Inherited Members

Constructors

ReportConverter(IGetsHtmlTemplate, IEmbedsReportAssets, IDeserializesReport, ISerializesReport)

Initializes a new instance of the ReportConverter class.

public ReportConverter(IGetsHtmlTemplate templateReader, IEmbedsReportAssets assetsEmbedder, IDeserializesReport reportReader, ISerializesReport reportWriter)

Parameters

templateReader IGetsHtmlTemplate

The template reader used to get the HTML template.

assetsEmbedder IEmbedsReportAssets

A service which embeds asset data into the JSON report.

reportReader IDeserializesReport

A report deserializer

reportWriter ISerializesReport

A report serializer

Methods

ConvertAsync(ReportConverterOptions)

Converts the JSON Screenplay report data to HTML asynchronously.

public Task ConvertAsync(ReportConverterOptions options)

Parameters

options ReportConverterOptions

The options for the report conversion.

Returns

Task

A task that represents the asynchronous operation.