Show / Hide Table of Contents

    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 Source

    EngineTestHarness(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 Source

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()
    View Source

    Dispose(Boolean)

    Releases unmanaged and - optionally - managed resources.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    true to release both managed and unmanaged resources; false to release only unmanaged resources.

    View Source

    Run()

    Runs the test harness.

    Declaration
    public void Run()
    View Source

    RunAsync()

    Runs the test harness.

    Declaration
    public async Task RunAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task
    View Source

    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
    • View Source
    Back to top Generated by DocFX