Caplin Trader 4.8.0

Class: module:caplin/services/testing/StreamlinkServiceStub

module:caplin/services/testing/StreamlinkServiceStub

Constructor

new module:caplin/services/testing/StreamlinkServiceStub()

Constructs a caplin.services.testing.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