AutoSubstituteTest Class

Assembly
Rocket.Surgery.Extensions.Testing.NSubstitute.dll
Namespace
Rocket.Surgery.Extensions.Testing
Interfaces
  • IDisposable
Base Types
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
NullableContextAttribute
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
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<LogEvent>
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) IContainer
A method that allows you to override and update the behavior of building the container
CaptureLogs(Func<LogEvent, bool>, IEnumerable<LogEvent>) IDisposable
Capture log outputs until the item is disposed
Inherited from LoggerTest
CaptureLogs(IEnumerable<LogEvent>) IDisposable
Capture log outputs until the item is disposed
Inherited from LoggerTest
CreateLoggerFactory(ILogger, LoggerProviderCollection) ILoggerFactory
Control the way that the serilog logger factory is created.
Inherited from LoggerTest
ExcludeSourceContext(string) void
Filter a given source context from serilog
Inherited from LoggerTest
IncludeSourceContext(string) void
Filter a given source context from serilog
Inherited from LoggerTest
Populate(IConfiguration, IServiceCollection) void
Populate the test class with the given configuration and services
Populate(IContainer) void
Populate the test class with the given configuration and services
Populate(IServiceCollection) void
Populate the test class with the given configuration and services
Populate(ValueTuple<IConfiguration, IServiceCollection>) void
Populate the test class with the given configuration and services
Rebuild(IContainer) AutoSubstitute
Force the container to rebuild from scratch

Extension Methods