- Assembly
- Rocket
.Surgery .Extensions .Testing .NSubstitute .dll - Namespace
- Rocket
.Surgery .Extensions .Testing - Interfaces
-
- IDisposable
- Base Types
-
- Object
- LoggerTest
graph BT
Type-->Base0["LoggerTest"]
click Base0 "/api/Rocket.Surgery.Extensions.Testing/LoggerTest"
Base0-->Base1["Object"]
Type-.->Interface0["IDisposable"]
Type["AutoSubstituteTest"]
class Type type-node
Syntax
public abstract class AutoSubstituteTest : LoggerTest, IDisposable
Attributes
| Type | Description |
|---|---|
| Nullable |
|
| NullableAttribute |
Constructors
Fields
| Name | Constant Value | Summary |
|---|---|---|
| Disposables |
The
System.Reactive.Disposables.CompositeDisposable
Inherited from LoggerTest
|
Properties
| Name | Value | Summary |
|---|---|---|
| AutoSubstitute | AutoSubstitute |
The AutoFake instance
|
| Configuration | IConfiguration |
The Configuration if defined otherwise empty.
|
| Container | IContainer |
The DryIoc container
|
| DiagnosticSource | DiagnosticSource |
The
DiagnosticSource
Inherited from LoggerTest
|
| Logger | ILogger |
The
Microsoft.Extensions.Logging.ILogger
Inherited from LoggerTest
|
| LoggerFactory | ILoggerFactory |
The
Microsoft.Extensions.Logging.ILoggerFactory
Inherited from LoggerTest
|
| LogStream | IObservable |
The
System.IObservable`1
Inherited from LoggerTest
|
| SerilogLogger | ILogger |
The
Microsoft.Extensions.Logging.ILogger
Inherited from LoggerTest
|
| ServiceProvider | IServiceProvider |
The Service Provider
|
Methods
| Name | Value | Summary |
|---|---|---|
| BuildContainer |
IContainer |
A method that allows you to override and update the behavior of building the container
|
| CaptureLogs |
IDisposable |
Capture log outputs until the item is disposed
Inherited from LoggerTest
|
| CaptureLogs |
IDisposable |
Capture log outputs until the item is disposed
Inherited from LoggerTest
|
| CreateLoggerFactory |
ILoggerFactory |
Control the way that the serilog logger factory is created.
Inherited from LoggerTest
|
| ExcludeSourceContext |
void |
Filter a given source context from serilog
Inherited from LoggerTest
|
| IncludeSourceContext |
void |
Filter a given source context from serilog
Inherited from LoggerTest
|
| Populate |
void |
Populate the test class with the given configuration and services
|
| Populate |
void |
Populate the test class with the given configuration and services
|
| Populate |
void |
Populate the test class with the given configuration and services
|
| Populate |
void |
Populate the test class with the given configuration and services
|
| Rebuild |
AutoSubstitute |
Force the container to rebuild from scratch
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| SetBackingValue |
T |
Sets the backing value.
From ValueExtensions
|
| With |
TBuilder |
Adds the specified dictionary to the provided dictionary.
|
