TestEnvelope Type
C#-friendly builders for the Command/Event envelopes that the pure handleCommand/applyEvent functions expect. Intended for unit tests: the envelope's plumbing fields (a fresh MessageId/CID, a UTC timestamp, no sender, empty metadata) are filled in for you, so a test supplies only the payload — and, for events, the aggregate version. The framework builds these envelopes itself at runtime; tests are the one place you build them by hand.
Static members
| Static member | Description |
|
|
Full Usage:
TestEnvelope.Command(details, timeProvider)
Parameters:
'T
timeProvider : TimeProvider
Returns: Command<'T>
|
|
Full Usage:
TestEnvelope.Event(details, version)
Parameters:
'T
version : int64
Returns: Event<'T>
|
|
Full Usage:
TestEnvelope.Event(details, version, timeProvider)
Parameters:
'T
version : int64
timeProvider : TimeProvider
Returns: Event<'T>
|
FCQRS