Class ProtoHttpContextState

Namespace
ProtoTest.Http
Assembly
ProtoTest.Http.dll

Per-test HTTP protocol state: the authenticator the test's [Auth] attributes resolved to and the request sequence attachment names use. One type keyed by protocol, so REST, GraphQL and any later HTTP protocol each keep their own instance without a state class per protocol.

public sealed class ProtoHttpContextState : IProtoContext
Inheritance
ProtoHttpContextState
Implements
Inherited Members
Extension Methods

Properties

AuthenticatorFactory

public Func<ProtoExecutionContext, IProtoHttpAuthenticator>? AuthenticatorFactory { get; init; }

Property Value

Func<ProtoExecutionContext, IProtoHttpAuthenticator>

Methods

NextRequestNumber()

public int NextRequestNumber()

Returns

int