Class ProtoTestAssembly
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
InitializeAsync(Action<IProtoHostBuilder>)
Builds and starts the global ProtoHost instance asynchronously.
protected static Task InitializeAsync(Action<IProtoHostBuilder> configure)
Parameters
configureAction<IProtoHostBuilder>Delegate to configure the IProtoHostBuilder.
Returns
Exceptions
- InvalidOperationException
Thrown if the host has already been initialized.