Show / Hide Table of Contents

Class CaseTestRunner

Case test runner

Inheritance
object
TestRunnerBase
CaseTestRunner
Inherited Members
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 CaseTestRunner : TestRunnerBase

Constructors

CaseTestRunner(PayrollHttpClient)

Initializes a new instance of the class

Declaration
public CaseTestRunner(PayrollHttpClient httpClient)
Parameters
Type Name Description
PayrollHttpClient httpClient

The payroll engine http client

Methods

CreateTestContext(CaseTest)

Create the test context

Declaration
protected virtual Task<CaseTestContext> CreateTestContext(CaseTest caseTest)
Parameters
Type Name Description
CaseTest caseTest

The test

Returns
Type Description
Task<CaseTestContext>

The test context

InitTest(CaseTest, CaseTestContext)

Initialize the test

Declaration
protected virtual void InitTest(CaseTest caseTest, CaseTestContext context)
Parameters
Type Name Description
CaseTest caseTest

The test

CaseTestContext context

The test context

RunCustomTest<T>(T, CaseTestType, Type, MethodInfo, CaseTestContext)

Run the test

Declaration
protected virtual CaseScriptTestResult RunCustomTest<T>(T test, CaseTestType caseTestType, Type testType, MethodInfo testMethod, CaseTestContext context)
Parameters
Type Name Description
T test
CaseTestType caseTestType
Type testType
MethodInfo testMethod
CaseTestContext context
Returns
Type Description
CaseScriptTestResult
Type Parameters
Name Description
T
Exceptions
Type Condition
TestCompileException

SetupInitCases(List<CaseChangeSetup>, CaseTestContext)

Setup initialization cases

Declaration
protected virtual Task SetupInitCases(List<CaseChangeSetup> initCases, CaseTestContext testContext)
Parameters
Type Name Description
List<CaseChangeSetup> initCases

The setup cases

CaseTestContext testContext

The test context

Returns
Type Description
Task

TestAsync(CaseTest)

Test case

Declaration
public virtual Task<CaseTestResult> TestAsync(CaseTest caseTest)
Parameters
Type Name Description
CaseTest caseTest
Returns
Type Description
Task<CaseTestResult>

The case 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