Skip to content

MassTransit Consumer Testing #1079

Answered by campbellja
kron0s19 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @kron0s19 If this helps, you can wait until the bus has finished processing your event by awaiting the InactivityTask

await testHarness.InactivityTask;

Please See Chris P's comment on a similar question to yours: MassTransit/MassTransit#4890 (comment)

Also the Test Harness's Published property contains a list which you can use to assert if it has been published or not: testHarness.Published...

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kron0s19
Comment options

Answer selected by kron0s19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants