Skip to content

MemberPath<TFixtureItem,TReturnType>.Stub<TInstance> method

Configure the member to be a stub.

csharp
public MemberConfig<TFixtureItem> Stub<TInstance>()
    where TInstance : TReturnType
public MemberConfig<TFixtureItem> Stub<TInstance>()
    where TInstance : TReturnType
parameterdescription
TInstanceThe type of the instance. This needs to be an interface type.

Return Value

The MemberConfig.

See Also