Class ProtoTestAssembly

Namespace
ProtoTest.TUnit
Assembly
ProtoTest.TUnit.dll

Abstract base class for TUnit assembly configuration. Manages the root ProtoHost lifecycle for the assembly.

public abstract class ProtoTestAssembly : ProtoTestAssemblyHost<ProtoTestAssembly>, IProtoTestAssemblyHost<ProtoTestAssembly>
Inheritance
ProtoTestAssembly
Implements
Inherited Members
Extension Methods

Methods

CleanupAsync()

Stops and disposes the global ProtoHost instance asynchronously.

protected static Task CleanupAsync()

Returns

Task

InitializeAsync(Action<IProtoHostBuilder>)

Builds and starts the global ProtoHost instance asynchronously.

protected static Task InitializeAsync(Action<IProtoHostBuilder> configure)

Parameters

configure Action<IProtoHostBuilder>

Delegate to configure the IProtoHostBuilder.

Returns

Task

Exceptions

InvalidOperationException

Thrown if the host has already been initialized.