Table of Contents

Class ScreenplayServiceCollectionExtensions

Namespace
CSF.Screenplay
Assembly
CSF.Screenplay.dll

Extension methods for IServiceCollection relating to Screenplay.

public static class ScreenplayServiceCollectionExtensions
Inheritance
ScreenplayServiceCollectionExtensions
Inherited Members

Methods

AddScreenplay(IServiceCollection)

Adds the Screenplay framework to the specified service collection.

public static IServiceCollection AddScreenplay(this IServiceCollection services)

Parameters

services IServiceCollection

An IServiceCollection

Returns

IServiceCollection

The service collection, so that calls may be chained

Remarks

Use this method to add Screenplay to an existing service collection; if you just want an instance of Screenplay and do not care for integrating it with a service collection of your own then consider the convenience method Create(Action<IServiceCollection>).

Exceptions

ArgumentNullException

If services is null.