Open sandboxFocus

Constructor MetalamaTestContext

MetalamaTestContext(MetalamaTestContextOptions, CancellationToken)

Initializes a new instance of the MetalamaTestContext class. Tests typically do not call this constructor directly, but instead the CreateTestContext(IAdditionalServiceCollection, string?, string?) method.

Declaration
public MetalamaTestContext(MetalamaTestContextOptions contextOptions, CancellationToken cancellationToken = default)
Parameters
Type Name Description
MetalamaTestContextOptions contextOptions
CancellationToken cancellationToken

MetalamaTestContext(MetalamaTestContextOptions, IAdditionalServiceCollection?, CancellationToken)

Initializes a new instance of the MetalamaTestContext class and specify an optional IAdditionalServiceCollection. Tests typically do not call this constructor directly, but instead the CreateTestContext(IAdditionalServiceCollection, string?, string?) method.

Declaration
public MetalamaTestContext(MetalamaTestContextOptions contextOptions, IAdditionalServiceCollection? additionalServices, CancellationToken cancellationToken = default)
Parameters
Type Name Description
MetalamaTestContextOptions contextOptions
IAdditionalServiceCollection additionalServices
CancellationToken cancellationToken