Class ProtoTestAssembly
Abstract base class for MSTest 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 asynchronously and cleans up assembly-wide resources. Call this inside your assembly-cleanup method.
protected static Task CleanupAsync()
Returns
InitializeAsync(Action<IProtoHostBuilder>)
Initializes and starts the global ProtoHost asynchronously for the test assembly. Call this inside your assembly-initialize method.
protected static Task InitializeAsync(Action<IProtoHostBuilder> configure)
Parameters
configureAction<IProtoHostBuilder>Delegate to configure services and hooks via IProtoHostBuilder.
Returns
Exceptions
- InvalidOperationException
Thrown if the host has already been initialized.