Adds the injections to the specified object properties and fields.
Namespace:
FastMoq
Assembly:
FastMoq.Core (in FastMoq.Core.dll)
public T AddInjections<T>(
T obj,
Type referenceType
)
Public Function AddInjections(Of T) ( _
obj As T, _
referenceType As Type _
) As T
public:
generic<typename T>
T AddInjections(
T obj,
Type^ referenceType
)
Type Parameters
- T
- The type.
Parameters
- obj
- Type: T
The object.
- referenceType
- Type: Type
Override object type used for injection attribute references.
Return Value
T.