Show / Hide Table of Contents

Class PayrunEmployeeTestRunner

Payrun employee test runner

Inheritance
object
TestRunnerBase
PayrunTestRunnerBase
PayrunEmployeeTestRunner
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 PayrunEmployeeTestRunner : PayrunTestRunnerBase

Constructors

PayrunEmployeeTestRunner(PayrollHttpClient, IScriptParser, PayrunTestSettings, DataImportMode, EmployeeTestMode, TestRunMode)

Initializes a new instance of the PayrunEmployeeTestRunner class

Declaration
public PayrunEmployeeTestRunner(PayrollHttpClient httpClient, IScriptParser scriptParser, PayrunTestSettings settings, DataImportMode importMode = DataImportMode.Single, EmployeeTestMode employeeMode = EmployeeTestMode.InsertEmployee, 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)

EmployeeTestMode employeeMode

The test running mode

TestRunMode runMode

The employee test mode

Properties

EmployeeMode

The employee test mode

Declaration
public EmployeeTestMode EmployeeMode { get; }
Property Value
Type Description
EmployeeTestMode

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 script parser

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

Methods

CleanupEmployees(Dictionary<Tenant, List<PayrollTestResult>>)

Cleanup test employees

Declaration
protected virtual Task CleanupEmployees(Dictionary<Tenant, List<PayrollTestResult>> tenantResults)
Parameters
Type Name Description
Dictionary<Tenant, List<PayrollTestResult>> tenantResults

Results

Returns
Type Description
Task

DuplicateTestEmployees(int, ExchangeTenant)

Duplicates the test employees

Declaration
protected virtual Task DuplicateTestEmployees(int tenantId, ExchangeTenant tenant)
Parameters
Type Name Description
int tenantId

The tenant id

ExchangeTenant tenant

The exchange tenant

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

The exchange model

Returns
Type Description
Task<Dictionary<Tenant, List<PayrollTestResult>>>

A list of payrun job results

Overrides
PayrunTestRunnerBase.TestAllAsync(Exchange)

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