Class TestRunnerBase
Base class for payroll tests
Inheritance
TestRunnerBase
Inherited Members
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> |