Skip to content

Compono.GeneratedTestDoubleRegistry.TryCreate(System.Type,object)

Compono

Compono.GeneratedTestDoubleRegistry

GeneratedTestDoubleRegistry.TryCreate(Type, object) Method

Looks up and invokes the factory registered for requestedType, or false if none has been registered - either because requestedType was never discovered as a generated-test-double leaf, or because the consuming assembly's module initializers haven't run yet.

public static bool TryCreate(System.Type requestedType, out object? value);

Parameters

requestedType System.Type

value System.Object

Returns

System.Boolean