Expand description
Mock implementation that combines both publish/subscribe and request/response patterns for unit testing without a NATS server.
Structsยง
- MockBus
- Combined in-memory message bus for unit tests.
- Mock
Publisher - In-memory
Publisherfor use in unit tests. - Mock
Received Command - Mock implementation of
ReceivedCommandfor unit tests. - Mock
Received Event - A received event wrapper for use in unit tests.
- Mock
Subscriber - Helper for creating test event streams.
- Reply
Checker - Receives the reply captured by a
MockReceivedCommand.