CreateTestContext()
Declaration
protected TestContext CreateTestContext()
Returns
Type | Description |
---|---|
TestContext |
CreateTestContext(IAdditionalServiceCollection)
Creates a test context with a collection of additional services or mocks.
Declaration
protected TestContext CreateTestContext(IAdditionalServiceCollection service)
Parameters
Type | Name | Description |
---|---|---|
IAdditionalServiceCollection | service |
Returns
Type | Description |
---|---|
TestContext |
CreateTestContext(TestContextOptions?, IAdditionalServiceCollection?)
Creates a test context, optionally with a non-default TestContextOptions or a collection of additional services or mocks.
Declaration
protected TestContext CreateTestContext(TestContextOptions? contextOptions, IAdditionalServiceCollection? services = null)
Parameters
Type | Name | Description |
---|---|---|
TestContextOptions | contextOptions | |
IAdditionalServiceCollection | services |
Returns
Type | Description |
---|---|
TestContext |