Class ConfigBindingDriverOptionsFactoryDecorator
- Namespace
- CSF.Extensions.WebDriver.Factories
- Assembly
- CSF.Extensions.WebDriver.dll
Decorator for ICreatesDriverOptions which binds the configuration to the created options.
public class ConfigBindingDriverOptionsFactoryDecorator : ICreatesDriverOptions
- Inheritance
-
ConfigBindingDriverOptionsFactoryDecorator
- Implements
- Inherited Members
Constructors
ConfigBindingDriverOptionsFactoryDecorator(ICreatesDriverOptions)
Initialises a new instance of ConfigBindingDriverOptionsFactoryDecorator.
public ConfigBindingDriverOptionsFactoryDecorator(ICreatesDriverOptions wrapped)
Parameters
wrappedICreatesDriverOptionsThe wrapped service
Exceptions
- ArgumentNullException
If
wrappedis null.
Methods
CreateOptions(Type, IConfigurationSection)
Creates and returns a new driver options instance.
public DriverOptions CreateOptions(Type optionsType, IConfigurationSection config)
Parameters
optionsTypeTypeThe desired type of the options object
configIConfigurationSectionThe CSF.Extensions.WebDriver configuration
Returns
- DriverOptions
A new driver options instance