Caplin Trader 5.1.0

Class: module:ct-services/testing/StreamlinkFixture

module:ct-services/testing/StreamlinkFixture()

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

Constructs a StreamlinkFixture.

The StreamlinkFixture server to provide a way for tests to interact with the StreamlinkStub.

Use of the Fixture assumes that a module:ct-services/testing/ConnectionServiceStub is registered as a service on the module:ct-core/ServiceRegistry with the alias "caplin.connection-service" as this service will be the one providing us the StreamlinkStub.

Tests may use the StreamlinkFixture to:

  • Send an insert update: given("streamlink./MYCONTAINER/FX.sendInsertUpdateAtPosition => 0")
    ...
  • Send a remove update: given(streamlink./MYCONTAINER/FX.sendRemoveUpdateAtPosition = 0")
    ...
  • Send a move update: given(streamlink./MYCONTAINER/FX.sendMoveUpdateFromTo = 0,1")
    ...
  • *
  • Update records in a container: given(streamlink./MYCONTAINER/FX.sendContainerUpdate = 'SUBJECT|FieldName:FieldValue,BuySell:BID,Amount:25,OrderID:123456'")
    ...
Implements:

Members

doGiven

Implements:
See:

doWhen

Implements:
See:

Methods

canHandleProperty()

Implements:
See:

doThen()

Implements:
See: