Show / Hide Table of Contents

    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 Source

    AccessTestHarness(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 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

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