Table of Contents

Class TestHostContext

Namespace
Mokkit.Suite
Assembly
Mokkit.dll

Represents the execution context for a test host, containing the unique identifier and shared resource bag. This class provides the contextual information needed for dependency container scopes and test execution phases.

public class TestHostContext

Inheritance

Inherited Members

Constructors

TestHostContext(Guid, TestHostBag)

Initializes a new instance of the Mokkit.Suite.TestHostContext class with the specified test host identifier and bag.

public TestHostContext(Guid testHostId, TestHostBag bag)

Parameters

testHostId Guid

The unique identifier for the test host instance.

bag TestHostBag

The test host bag for storing and retrieving shared test resources.

Properties

Bag

Gets the test host bag that contains shared resources and services for the test execution. This bag allows different components of the test framework to share data and services.

public TestHostBag Bag { get; }

Property Value

TestHostBag

TestHostId

Gets the unique identifier for the test host instance. This identifier is used to distinguish between different test host contexts.

public Guid TestHostId { get; }

Property Value

Guid