Class ContractInteractionResult

Namespace
Kuestenlogik.Bowire.Contracts
Assembly
Kuestenlogik.Bowire.Contracts.dll

One interaction replayed against the provider.

public sealed class ContractInteractionResult
Inheritance
ContractInteractionResult
Inherited Members

Constructors

ContractInteractionResult()

public ContractInteractionResult()

Properties

Assertions

Status + body assertions checked against the contract.

public List<ContractAssertion> Assertions { get; init; }

Property Value

List<ContractAssertion>

Description

The Pact interaction description (drill-in row label).

public string Description { get; set; }

Property Value

string

DurationMs

Duration of this single interaction.

public long DurationMs { get; set; }

Property Value

long

Error

Transport / read error, if the interaction could not be evaluated.

public string? Error { get; set; }

Property Value

string

Method

HTTP method of the replayed request.

public string Method { get; set; }

Property Value

string

Passed

True when there was no error and every assertion passed.

public bool Passed { get; }

Property Value

bool

Response

Actual response body (may be truncated by the caller for display).

public string? Response { get; set; }

Property Value

string

Status

Actual response status, as a string ("200"); null if the request never completed.

public string? Status { get; set; }

Property Value

string