Class EngineTestHarness
Provides the capability to test Engine services.
Inheritance
System.Object
EngineTestHarness
Implements
System.IDisposable
Namespace: Copper.Conventions.Method.Testing.Harness.V1
Assembly: Copper.Conventions.Method.Testing.Harness.dll
Syntax
public class EngineTestHarness : IDisposable
Constructors
View SourceEngineTestHarness(TestHarness, IEngineRequestSubmitterBuilderFactory, ApplicationContextProvider)
Initializes a new instance of the EngineTestHarness class.
Declaration
public EngineTestHarness(TestHarness testHarness, IEngineRequestSubmitterBuilderFactory engineRequestSubmitterBuilderFactory, ApplicationContextProvider applicationContextProvider)
Parameters
Type | Name | Description |
---|---|---|
TestHarness | testHarness | The test harness. |
IEngineRequestSubmitterBuilderFactory | engineRequestSubmitterBuilderFactory | The engine request submitter builder factory. |
ApplicationContextProvider | applicationContextProvider | The application context provider. |
Methods
View SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
|
Run()
Runs the test harness.
Declaration
public void Run()
RunAsync()
Runs the test harness.
Declaration
public async Task RunAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
TestEngine<TContract>(Func<TContract, Task>)
Executes a scenario on an Engine contract.
Declaration
public async Task TestEngine<TContract>(Func<TContract, Task> scenario)
where TContract : class
Parameters
Type | Name | Description |
---|---|---|
System.Func<TContract, System.Threading.Tasks.Task> | scenario | The scenario. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Type Parameters
Name | Description |
---|---|
TContract | The contract type. |
Implements
System.IDisposable