Caplin Trader 5.1.0

Class: module:ct-services/testing/UserServiceStub

module:ct-services/testing/UserServiceStub(sLoginName)

The UserServiceStub serves to create a stub for a UserService to enable tests to simulate a user service.

Constructor

new module:ct-services/testing/UserServiceStub(sLoginName)

Constructs a UserServiceStub.

Parameters:
Name Type Description
sLoginName String

The name to use for login.

Implements:

Methods

dispose()

Disposes of any listeners and resources that were used by the service.

Implements:

getLoginName() → {string}

Retrieves the user's login name.

Implements:
Returns:

The user's login name.

Type
string