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
Public Function Provide(Of TService As Class) (
instance As TService
) As TService
Parameters
- instance
- Type: TService
The instance to register if needed.
Type Parameters
- TService
- The type of the service.
Return Value
Type:
TServiceThe instance resolved from container.
See Also