Table of Contents

Class MockRegistration<TMock>

Namespace
Mokkit.Containers.Common
Assembly
Mokkit.Containers.Common.dll

Represents a registration entry for a mock object, containing the type information and factory function. This class encapsulates the metadata and creation logic for a specific mock registration.

public class MockRegistration<TMock>

Type Parameters

TMock

The type of mock object that this registration creates.

Inheritance

Inherited Members

Constructors

MockRegistration(Type, Func<TMock>)

Initializes a new instance of the Mokkit.Containers.Common.MockRegistration`1 class with the specified inner type and factory function.

public MockRegistration(Type innerType, Func<TMock> factory)

Parameters

innerType Type

The type that this mock registration represents.

factory Func<TMock>

The factory function that creates instances of the mock object.

Properties

Factory

Gets the factory function that creates instances of the mock object.

public Func<TMock> Factory { get; }

Property Value

Func<TMock>

InnerType

Gets the inner type that this mock registration represents. This is typically the interface or class type that the mock implements.

public Type InnerType { get; }

Property Value

Type