Caplin Trader 5.1.0

Interface: module:ct-services/testing/ConfigServiceStub

module:ct-services/testing/ConfigServiceStub

A service that allows system-wide application configuration values to be stored in a central repository.

Implements:

Methods

getProperty(sKey) → {String}

Returns a preference that the user has either set within the current session or in a previous session

Parameters:
Name Type Description
sKey String

The key for the key value store

Implements:
Returns:

sValue

Type
String

setStubProperties(mProperties)

Stub only method.

Parameters:
Name Type Description
mProperties Map

The properties to add.

setStubProperty(propertyName, value)

Stub only method.

Sets a single property.

Parameters:
Name Type Description
propertyName String

The name of the property

value *

The value of the property