Summary
Create a convention test host build for the given
Microsoft.Extensions.DependencyModel.DependencyContext in the assembly.
- Assembly
- Rocket
.Surgery .Conventions .TestHost .dll - Namespace
- Rocket
.Surgery .Conventions .TestHost - Containing Type
- Convention
Test Host Builder
Syntax
public static ConventionTestHostBuilder For(object instance, ILoggerFactory loggerFactory = null)
Parameters
| Name | Type | Description |
|---|---|---|
| instance | object | The object that that will be used to load the Microsoft.Extensions.DependencyModel.DependencyContext. |
| loggerFactory | ILoggerFactory | Optional logger factory. |
Return Value
| Type | Description |
|---|---|
| Convention |
