> ## Documentation Index
> Fetch the complete documentation index at: https://klef.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# SourceTenant

> A source's test tenant.

```csharp
public abstract class SourceTenant : IHris
```

**Implements:** `IHris`

## Constructors

```csharp
protected SourceTenant()
```

## Properties

**ApiSunset** `DateOnly?`

The day the vendor retires the API version the connector calls.

**Context** `ConnectionContext` *required*

A context with working credentials.

**MissingId** `string` *required*

A source id the vendor cannot hold.

**PageSize** `int` *required*

The page size every read asks for.

**RefusedContext** `ConnectionContext` *required*

A context whose secret is spoiled.

## Methods

### ApplyAsync()

```csharp
public abstract Task ApplyAsync(TestWorker worker, HrisEvent change, CancellationToken cancellationToken)
```

Applies one change to a worker.

#### Parameters

**worker** `TestWorker` *required*

**change** `HrisEvent` *required*

**cancellationToken** `CancellationToken` *required*

#### Returns

`Task`

### CannotExpress()

```csharp
public abstract string? CannotExpress(HrisEvent change)
```

Says why the vendor cannot express a change.

#### Parameters

**change** `HrisEvent` *required*

#### Returns

`string`

### HireAsync()

```csharp
public abstract Task<TestWorker> HireAsync(string identity, Day start, CancellationToken cancellationToken)
```

Hires a worker in the vendor.

#### Parameters

**identity** `string` *required*

**start** `Day` *required*

**cancellationToken** `CancellationToken` *required*

#### Returns

`Task<TestWorker>`

### MintName()

```csharp
public string MintName()
```

Mints a name for a new worker.

#### Returns

`string`

### NewIdentity()

```csharp
public abstract string NewIdentity(string name)
```

Builds an address the vendor accepts.

#### Parameters

**name** `string` *required*

#### Returns

`string`

### PurgeAsync()

```csharp
public abstract Task PurgeAsync(TestWorker worker, CancellationToken cancellationToken)
```

Removes a worker a run made.

#### Parameters

**worker** `TestWorker` *required*

**cancellationToken** `CancellationToken` *required*

#### Returns

`Task`

### SeedAsync()

```csharp
public virtual Task SeedAsync(CancellationToken cancellationToken)
```

Makes what a run needs.

#### Parameters

**cancellationToken** `CancellationToken` *required*

#### Returns

`Task`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.