Class CaseBuildTestRunner
Case build function test runner. Compares the output case slots/fields and related cases with the received case
Inherited Members
Namespace: PayrollEngine.Client.Test.Case
Assembly: PayrollEngine.Client.Test.dll
Syntax
public class CaseBuildTestRunner : CaseScriptTestRunner
Constructors
CaseBuildTestRunner(PayrollHttpClient, CaseTestContext)
new instance of CaseValidateTestRunnersee
Declaration
public CaseBuildTestRunner(PayrollHttpClient httpClient, CaseTestContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| PayrollHttpClient | httpClient | The payroll http client |
| CaseTestContext | context | The test context |
Methods
CompareCase(string, CaseSet, CaseSet)
Compare expected case with received case
Declaration
protected virtual List<CaseScriptTestResult> CompareCase(string testName, CaseSet expected, CaseSet actual)
Parameters
| Type | Name | Description |
|---|---|---|
| string | testName | The test name |
| CaseSet | expected | The expected case |
| CaseSet | actual | The actual case |
Returns
| Type | Description |
|---|---|
| List<CaseScriptTestResult> | TupleThe value case field matching the name, null on missing case field |
Test(CaseBuildTest)
Test the case validation
Declaration
public virtual Task<IList<CaseScriptTestResult>> Test(CaseBuildTest test)
Parameters
| Type | Name | Description |
|---|---|---|
| CaseBuildTest | test | The test name |
Returns
| Type | Description |
|---|---|
| Task<IList<CaseScriptTestResult>> | The test results |