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