Click or drag to resize
TestUtilCreateTopic Method
Creates a valid Topic with the specified Service to support testing publishers.

The expected use case is to support returning a custom Topic while mocking GetTopic(Message) methods.

Namespace:  Bloomberglp.Blpapi.Test
Assembly:  Bloomberglp.Blpapi (in Bloomberglp.Blpapi.dll) Version: 3.19.2.1
Syntax
public static Topic CreateTopic(
	Service service,
	bool isActive
)

Parameters

service
Type: Bloomberglp.BlpapiService
The service that the Topic should be created for.

Must be a test Service created through TestUtil.

isActive
Type: SystemBoolean
Specifies whether or not the Topic is still active (not deleted).

Return Value

Type: Topic
Returns the newly created Topic.
See Also