Caplin Trader 5.0.0

Class: module:ct-services/testing/StreamlinkServiceStub

module:ct-services/testing/StreamlinkServiceStub()

new module:ct-services/testing/StreamlinkServiceStub()

Constructs a StreamlinkServiceStub.

The SubscriptionServiceStub serves to create a stub for a SubscriptionService to enable tests to simulate a subscription.

Methods

generateStatusEvent(subject, status, fieldsopt)

generateStatusEvent

Parameters:
Name Type Attributes Description
subject string

the subject, container or constituent record.

status string

the status

fields object <optional>

the event fields to return from getFields

Properties
Name Type Attributes Description
code string <optional>

the event status code

status string <optional>

the event status description