on

abstract fun <T> on(id: SubscriptionId<T>, subscribe: FakeSubscriptionSubscribe<T>)

Mocks the subscription process corresponding to SubscriptionId.

Parameters

id

The subscription ID that identifies this subscription

subscribe

A function that mocks the subscription behavior


abstract fun <T> on(testTag: SubscriptionTestTag<T>, subscribe: FakeSubscriptionSubscribe<T>)

Mocks the subscription process corresponding to the given test tag.

Parameters

testTag

The test tag that identifies this subscription

subscribe

A function that mocks the subscription behavior