Skip to main content
Extends: HttpMessageHandler Implements: IDisposable

Constructors

Fields

string
required
The only token the vendor accepts.

Properties

int
required
How many items one page holds.
bool
required
Whether a list repeats the cursor sent.

Methods

AnswerAsync()

Answers a request that passed the failures.

Parameters

HttpRequestMessage
required
CancellationToken
required

Returns

Task<HttpResponseMessage>

Context()

Builds a context that reaches this vendor.

Type Parameters

required

Parameters

string

Returns

ConnectionContext

DeleteAccount()

Deletes an account outside the connector.

Parameters

string
required

FailNext()

Fails the coming requests.

Parameters

required
int
int

Field()

Reads a field from the fake’s own state.

Parameters

string
required
string
required

Returns

string

Grant()

Gives an account a value directly.

Parameters

string
required
string
required
string
required

Held()

Lists what an account holds on one field.

Parameters

string
required
string
required

Returns

IReadOnlyCollection<string>

MatchKey()

Gets the match key of a named account.

Parameters

string
required

Returns

string

NewAccount()

Builds the account a valid create writes.

Parameters

string
required

Returns

JsonObject

SeedAccount()

Adds an active account and returns its id.

Parameters

string
required

Returns

string

SeedEntitlement()

Adds a value an account can hold.

Parameters

string
required
string
required

Returns

string

SendAsync()

Parameters

HttpRequestMessage
required
CancellationToken
required

Returns

Task<HttpResponseMessage>

Standing()

Reads how an account stands.

Parameters

string
required

Returns

TenantStanding