Class ServiceProviderAdapter
- Namespace
- CSF.Screenplay
- Assembly
- CSF.Screenplay.SpecFlowPlugin.dll
Adapter class which allows a SpecFlow/BoDi IObjectContainer
to be used as an IServiceProvider.
public class ServiceProviderAdapter : IServiceProvider
- Inheritance
-
ServiceProviderAdapter
- Implements
- Inherited Members
Constructors
ServiceProviderAdapter(IObjectContainer)
Initialises an instance of ServiceProviderAdapter.
public ServiceProviderAdapter(IObjectContainer wrapped)
Parameters
wrapped
IObjectContainerThe BoDi object container
Exceptions
- ArgumentNullException
If
wrapped
is null.
Methods
GetService(Type)
public object GetService(Type serviceType)
Parameters
serviceType
Type