Class AccessTestHarness
Provides the capability to test Access services.
Inheritance
System.Object
AccessTestHarness
Implements
System.IDisposable
Namespace: Copper.Conventions.Method.Testing.Harness.V1
Assembly: Copper.Conventions.Method.Testing.Harness.dll
Syntax
public class AccessTestHarness : IDisposable
Constructors
View SourceAccessTestHarness(TestHarness, IAccessRequestSubmitterBuilderFactory, ApplicationContextProvider)
Initializes a new instance of the AccessTestHarness class.
Declaration
public AccessTestHarness(TestHarness testHarness, IAccessRequestSubmitterBuilderFactory accessRequestSubmitterBuilderFactory, ApplicationContextProvider applicationContextProvider)
Parameters
Type | Name | Description |
---|---|---|
TestHarness | testHarness | The test harness. |
IAccessRequestSubmitterBuilderFactory | accessRequestSubmitterBuilderFactory | The access 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 |
TestAccess<TContract>(Func<TContract, Task>)
Executes a scenario on an Access contract.
Declaration
public async Task TestAccess<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