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