TestContext(TestContextOptions)
Initializes a new instance of the TestContext class. Tests typically do not call this constructor directly, but instead the CreateTestContext(IAdditionalServiceCollection, string?, string?) method.
Declaration
public TestContext(TestContextOptions contextOptions)
Parameters
Type | Name | Description |
---|---|---|
TestContextOptions | contextOptions |
TestContext(TestContextOptions, IAdditionalServiceCollection?)
Initializes a new instance of the TestContext class and specify an optional IAdditionalServiceCollection. Tests typically do not call this constructor directly, but instead the CreateTestContext(IAdditionalServiceCollection, string?, string?) method.
Declaration
public TestContext(TestContextOptions contextOptions, IAdditionalServiceCollection? additionalServices = null)
Parameters
Type | Name | Description |
---|---|---|
TestContextOptions | contextOptions | |
IAdditionalServiceCollection | additionalServices |