Click or drag to resize

AutoFakeProvideTService Method (TService)

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

Namespace:  Autofac.Extras.FakeItEasy
Assembly:  Autofac.Extras.FakeItEasy (in Autofac.Extras.FakeItEasy.dll) Version: 7.0.0+33b7a0dd8aef9b7b999200eb0c6cea7a45484151
Syntax
public TService Provide<TService>(
	TService instance
)
where TService : class

Parameters

instance
Type: TService
The instance to register if needed.

Type Parameters

TService
The type of the service.

Return Value

Type: TService
The instance resolved from container.
See Also