Show / Hide Table of Contents

Class TestRunnerBase

Base class for payroll tests

Inheritance
object
TestRunnerBase
CaseScriptTestRunner
CaseTestRunner
FileTestRunner
PayrunTestRunnerBase
ReportScriptTestRunner
ReportTestRunner
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: PayrollEngine.Client.Test
Assembly: PayrollEngine.Client.Test.dll
Syntax
public abstract class TestRunnerBase

Constructors

TestRunnerBase(PayrollHttpClient)

Initializes a new instance of the TestRunnerBase class

Declaration
protected TestRunnerBase(PayrollHttpClient httpClient)
Parameters
Type Name Description
PayrollHttpClient httpClient

The payroll engine http client

Properties

HttpClient

The payroll http client

Declaration
public PayrollHttpClient HttpClient { get; }
Property Value
Type Description
PayrollHttpClient

Methods

DeleteEmployeeAsync(int, int)

Delete employee

Declaration
protected Task DeleteEmployeeAsync(int tenantId, int employeeId)
Parameters
Type Name Description
int tenantId

The tenant id

int employeeId

The employee id

Returns
Type Description
Task

DeleteTenantAsync(int)

Delete tenant

Declaration
protected Task DeleteTenantAsync(int tenantId)
Parameters
Type Name Description
int tenantId

The tenant id

Returns
Type Description
Task

GetEmployeeAsync(int, string)

Get tenant

Declaration
protected Task<Employee> GetEmployeeAsync(int tenantId, string identifier)
Parameters
Type Name Description
int tenantId

The tenant id

string identifier

The tenant identifier

Returns
Type Description
Task<Employee>

GetTenantAsync(string)

Get tenant

Declaration
protected Task<Tenant> GetTenantAsync(string identifier)
Parameters
Type Name Description
string identifier

The tenant identifier

Returns
Type Description
Task<Tenant>

GetUserAsync(int, string)

Get user

Declaration
protected Task<User> GetUserAsync(int tenantId, string identifier)
Parameters
Type Name Description
int tenantId

The tenant id

string identifier

The tenant identifier

Returns
Type Description
Task<User>

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