Class ReportFormatCreator
- Namespace
- CSF.Screenplay.Reporting
- Assembly
- CSF.Screenplay.dll
Default implementation of IGetsReportFormat.
public class ReportFormatCreator : IGetsReportFormat
- Inheritance
-
ReportFormatCreator
- Implements
- Inherited Members
Methods
GetReportFormat(string, IList<object>)
Gets a ReportFormat instance from the specified template and collection of values.
public ReportFormat GetReportFormat(string template, IList<object> values)
Parameters
template
stringThe original report format template
values
IList<object>An ordered collection of placeholder values to be used with the template
Returns
- ReportFormat
An instance of ReportFormat which combines the template and the values.
Remarks
The template
is intended to be a human-readable string, with value placeholders enclosed within braces.
The values
is a collection of data values to be used as the 'filler' for those placeholders.
The order in which the values are provided is important, as the placeholders will be filled in the order in which they
appear in the template string. Note that duplicate placeholders will receive the same value and do not require the value
to be repeated in the values
collection.
Exceptions
- ArgumentNullException
If any parameter is null.