TestMessageReceiver

TODO add description

Implements: IMessageReceiver, ICleanable

Description

TODO add description

Constructors

TODO add description

public constructor()

Properties

messages

Gets the list of received messages.

public messages(): MessageEnvelope[]

messageCount

Gets the received message count.

public messageCount(): number

  • returns: number - TODO add description

Instance methods

clear

Clears all received messagers.

public clear(correlationId: string): Promise<void>

  • correlationId: string - (optional) transaction id to trace execution through call chain.

receiveMessage

Receives incoming message from the queue.

See also MessageEnvelope, IMessageQueue

public receiveMessage(envelope: MessageEnvelope, queue: IMessageQueue): Promise<void>