Table of Contents

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

wrapped ICreatesDriverOptions

The wrapped service

Exceptions

ArgumentNullException

If wrapped is null.

Methods

CreateOptions(Type, IConfigurationSection)

Creates and returns a new driver options instance.

public DriverOptions CreateOptions(Type optionsType, IConfigurationSection config)

Parameters

optionsType Type

The desired type of the options object

config IConfigurationSection

The CSF.Extensions.WebDriver configuration

Returns

DriverOptions

A new driver options instance