AutoFakeTest Class

Summary

A base class with AutoFake wired in for DryIoc
Assembly
Rocket.Surgery.Extensions.Testing.FakeItEasy.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["AutoFakeTest"] class Type type-node

Syntax

public abstract class AutoFakeTest : 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
AutoFake AutoFake
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.
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) AutoFake
Force the container to rebuild from scratch

Extension Methods