Class PerformanceFactory
- Namespace
- CSF.Screenplay.Performances
- Assembly
- CSF.Screenplay.dll
A factory service for instances of Performance
public class PerformanceFactory : ICreatesPerformance
- Inheritance
-
PerformanceFactory
- Implements
- Inherited Members
Constructors
PerformanceFactory(IServiceProvider)
Initialises a new instance of PerformanceFactory
public PerformanceFactory(IServiceProvider services)
Parameters
services
IServiceProviderDependency injection services
Exceptions
- ArgumentNullException
If
services
is null
Methods
CreatePerformance()
Creates a new performance instance.
public IPerformance CreatePerformance()
Returns
- IPerformance
A new performance instance