Class MessageBusExtensions
- Namespace
- ReactiveUI.Testing
- Assembly
- ReactiveUI.Testing.dll
Message bus testing extensions.
- Inheritance
-
Message
Bus Extensions
Methods
With(IMessageBus, Action)
Override the default Message Bus during the specified block.
Parameters
messageBus
IMessageBus The message bus to use for the block.
block
ActionThe action to execute.
WithMessageBus(IMessageBus)
WithMessageBus allows you to override the default Message Bus implementation until the object returned is disposed. If a message bus is not specified, a default empty one is created.
Parameters
messageBus
IMessageBus The message bus to use, or null to create a new one using the default implementation.
Returns
- IDisposable
An object that when disposed, restores the original message bus.
With<TRet>(IMessageBus, Func<TRet>)
Override the default Message Bus during the specified block.
Parameters
messageBus
IMessageBus The message bus to use for the block.
block
Func<TRet>The function to execute.
Returns
- TRet
The return value of the function.
Type Parameters
TRet
The return type.