Summary
Resolve the specified type in the container (register specified instance if needed).
- Assembly
- Rocket
.Surgery .Extensions .Testing .FakeItEasy .dll - Namespace
- Rocket
.Surgery .Extensions .Testing - Containing Type
- AutoFake
Syntax
public TService Provide<TService>(TService instance) where TService : class
Type Parameters
Name | Description |
---|---|
TService | The type of the service. |
Parameters
Name | Type | Description |
---|---|---|
instance | TService | The instance to register if needed. |
Return Value
Type | Description |
---|---|
TService | The instance resolved from container. |