Show / Hide Table of Contents

Class PayrunTestRunner

Payrun test runner

Inheritance
object
TestRunnerBase
PayrunTestRunnerBase
PayrunTestRunner
Inherited Members
PayrunTestRunnerBase.TestPayrunJobAsync(ExchangeTenant, JobResultMode)
PayrunTestRunnerBase.ApplyOwner(Exchange, string)
PayrunTestRunnerBase.GetPayrunJobAsync(int, int)
PayrunTestRunnerBase.GetPayrunJobsAsync(int, string)
PayrunTestRunnerBase.GetEmployeePayrunJobsAsync(int, int)
PayrunTestRunnerBase.GetPayrollResultAsync(int, int, int)
PayrunTestRunnerBase.GetWageTypeResultsAsync(int, int)
PayrunTestRunnerBase.GetWageTypeCustomResultsAsync(int, int, int)
PayrunTestRunnerBase.GetCollectorResultsAsync(int, int)
PayrunTestRunnerBase.GetCollectorCustomResultsAsync(int, int, int)
PayrunTestRunnerBase.GetPayrunResultsAsync(int, int)
PayrunTestRunnerBase.Settings
PayrunTestRunnerBase.TestPrecision
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.Payrun
Assembly: PayrollEngine.Client.Test.dll
Syntax
public class PayrunTestRunner : PayrunTestRunnerBase

Constructors

PayrunTestRunner(PayrollHttpClient, IScriptParser, PayrunTestSettings, DataImportMode, TestRunMode)

Initializes a new instance of the PayrunTestRunner class

Declaration
public PayrunTestRunner(PayrollHttpClient httpClient, IScriptParser scriptParser, PayrunTestSettings settings, DataImportMode importMode = DataImportMode.Single, TestRunMode runMode = TestRunMode.RunTests)
Parameters
Type Name Description
PayrollHttpClient httpClient

The payroll engine http client

IScriptParser scriptParser

The script parser

PayrunTestSettings settings

The test settings

DataImportMode importMode

The data import mode (default: single)

TestRunMode runMode

The employee test mode

Properties

ImportMode

The data import mode

Declaration
public DataImportMode ImportMode { get; }
Property Value
Type Description
DataImportMode

RunMode

The test running mode

Declaration
public TestRunMode RunMode { get; }
Property Value
Type Description
TestRunMode

ScriptParser

The employee test mode

Declaration
public IScriptParser ScriptParser { get; }
Property Value
Type Description
IScriptParser

Methods

CleanupTenant(Tenant)

Cleanup test tenant

Declaration
protected virtual Task CleanupTenant(Tenant exchangeTenant)
Parameters
Type Name Description
Tenant exchangeTenant

The exchange tenant

Returns
Type Description
Task

CleanupTenants(Exchange, Dictionary<Tenant, List<PayrollTestResult>>)

Cleanup test tenants

Declaration
protected virtual Task CleanupTenants(Exchange exchange, Dictionary<Tenant, List<PayrollTestResult>> results)
Parameters
Type Name Description
Exchange exchange

The exchange

Dictionary<Tenant, List<PayrollTestResult>> results

Results

Returns
Type Description
Task

TestAllAsync(Exchange)

Start the test

Declaration
public override Task<Dictionary<Tenant, List<PayrollTestResult>>> TestAllAsync(Exchange exchange)
Parameters
Type Name Description
Exchange exchange
Returns
Type Description
Task<Dictionary<Tenant, List<PayrollTestResult>>>

A list of payrun job results

Overrides
PayrunTestRunnerBase.TestAllAsync(Exchange)

ValidateTenant(ExchangeTenant)

Validate the tenant

Declaration
protected virtual void ValidateTenant(ExchangeTenant tenant)
Parameters
Type Name Description
ExchangeTenant tenant

The tenant

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