Show / Hide Table of Contents

Class CaseBuildTestRunner

Case build function test runner. Compares the output case slots/fields and related cases with the received case

Inheritance
object
TestRunnerBase
CaseScriptTestRunner
CaseBuildTestRunner
Inherited Members
CaseScriptTestRunner.NewResult(CaseTestType, string, string, object, object)
CaseScriptTestRunner.NewResult(bool, CaseTestType, string, string, object, object)
CaseScriptTestRunner.NewFailedResult(CaseTestType, string, string, object, object)
CaseScriptTestRunner.NewResult(HttpRequestException, string, object)
CaseScriptTestRunner.GetAvailableCase(string)
CaseScriptTestRunner.GetAvailableCaseAsync(string)
CaseScriptTestRunner.GetCase(string, CaseChangeSetup)
CaseScriptTestRunner.GetCaseAsync(string, CaseChangeSetup)
CaseScriptTestRunner.AddCaseAsync(CaseChangeSetup)
CaseScriptTestRunner.Context
CaseScriptTestRunner.Tenant
CaseScriptTestRunner.User
CaseScriptTestRunner.Payroll
CaseScriptTestRunner.Employee
CaseScriptTestRunner.EvaluationDate
CaseScriptTestRunner.RegulationDate
TestRunnerBase.GetTenantAsync(string)
TestRunnerBase.DeleteTenantAsync(int)
TestRunnerBase.DeleteEmployeeAsync(int, int)
TestRunnerBase.GetUserAsync(int, string)
TestRunnerBase.GetEmployeeAsync(int, string)
TestRunnerBase.HttpClient
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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

Extension Methods

ConsoleExtensions.WriteProperties(object, bool)
ValueTypeExtensions.GetValueType(object)
ObjectInfo.GetPropertyValue(object, string)
ObjectInfo.GetPropertyValue<T>(object, string, T)
ObjectInfo.ResolvePropertyValue(object, string)
ObjectInfo.SetPropertyValue(object, string, object)
☀
☾
Back to top Generated by DocFX