Summary
Automatically creates substitute for requested services that haven't been registered
- Assembly
- Rocket
.Surgery .Extensions .Testing .NSubstitute .dll - Namespace
- Rocket
.Surgery .Extensions .Testing - Interfaces
-
- IDisposable
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type-.->Interface0["IDisposable"]
Type["AutoSubstitute"]
class Type type-node
Syntax
public class AutoSubstitute : IDisposable
Attributes
Type | Description |
---|---|
Nullable |
|
NullableAttribute |
Constructors
Name | Summary |
---|---|
AutoSubstitute |
Create a container that automatically substitutes unknown types. |
Properties
Name | Value | Summary |
---|---|---|
Container | IContainer |
Gets the
DryIoc.IContainer that handles the component resolution.
|
Methods
Name | Value | Summary |
---|---|---|
Provide |
TService |
Resolve the specified type in the container (register specified instance if needed).
|
Provide |
TService |
Resolve the specified type in the container (register specified instance if needed).
|
Resolve |
T |
Resolve the specified type in the container (register it if needed).
|
Extension Methods
Name | Value | Summary |
---|---|---|
SetBackingValue |
T |
Sets the backing value.
From ValueExtensions
|
With |
TBuilder |
Adds the specified dictionary to the provided dictionary.
|