AddXunitTestLoggingOutputHelperAccessor Method
Definition
- Namespace
- Codebelt.Extensions.Xunit.Hosting
- Assemblies
- Codebelt.Extensions.Xunit.Hosting.dll
AddXunitTestLoggingOutputHelperAccessor(IServiceCollection)
Adds a default implementation of ITestOutputHelperAccessor to the services collection.
public static IServiceCollection AddXunitTestLoggingOutputHelperAccessor(this IServiceCollection services)
Parameters
servicesIServiceCollectionThe IServiceCollection to extend.
Returns
- IServiceCollection
A reference to
servicesso that additional configuration calls can be chained.
AddXunitTestLoggingOutputHelperAccessor<T>(IServiceCollection)
Adds a specified implementation of ITestOutputHelperAccessor to the services collection.
public static IServiceCollection AddXunitTestLoggingOutputHelperAccessor<T>(this IServiceCollection services) where T : class, ITestOutputHelperAccessor
Parameters
servicesIServiceCollectionThe IServiceCollection to extend.
Returns
- IServiceCollection
A reference to
servicesso that additional configuration calls can be chained.
Type Parameters
TThe type of the implementation of ITestOutputHelperAccessor.
Exceptions
- ArgumentNullException
servicescannot be null.