Class ReportBuildTestRunner
Report build test runner.
Inherited Members
Namespace: PayrollEngine.Client.Test.Report
Assembly: PayrollEngine.Client.Test.dll
Syntax
public class ReportBuildTestRunner : ReportScriptTestRunner
Constructors
ReportBuildTestRunner(PayrollHttpClient, ReportTestContext)
new instance of ReportBuildTestRunnersee
Declaration
public ReportBuildTestRunner(PayrollHttpClient httpClient, ReportTestContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| PayrollHttpClient | httpClient | The payroll http client |
| ReportTestContext | context | The test context |
Methods
CompareReport(string, List<ReportParameter>, List<ReportParameter>)
Compare expected report with received report
Declaration
protected virtual List<ReportScriptTestResult> CompareReport(string testName, List<ReportParameter> expected, List<ReportParameter> actual)
Parameters
| Type | Name | Description |
|---|---|---|
| string | testName | The test name |
| List<ReportParameter> | expected | The expected report |
| List<ReportParameter> | actual | The actual report |
Returns
| Type | Description |
|---|---|
| List<ReportScriptTestResult> | TupleThe value case field matching the name, null on missing case field |
Test(ReportBuildTest)
Test the report build
Declaration
public virtual Task<IList<ReportScriptTestResult>> Test(ReportBuildTest test)
Parameters
| Type | Name | Description |
|---|---|---|
| ReportBuildTest | test | The test |
Returns
| Type | Description |
|---|---|
| Task<IList<ReportScriptTestResult>> | The test results |