AutoFake.

Provide<TService, TImplementation>() Method

Summary

Resolve the specified type in the container (register it if needed).

Syntax

public TService Provide<TService, TImplementation>() where TImplementation : TService

Type Parameters

Name Description
TService The type of the service.
TImplementation The implementation of the service.

Return Value

Type Description
TService The service.