测试 saga 没有回复发起人的最佳方法是什么?
我看到使用 NServiceBus.Testing 我可以调用 Saga.ExpectReplyToOriginator,但我没有看到像“ExpectNotReplyToOriginator”这样的东西。我尝试使用 .ExpectNotSend() 和 .ExpectNotPublish() 并且似乎都没有在我期望的地方失败。
测试 saga 没有回复发起人的最佳方法是什么?
我看到使用 NServiceBus.Testing 我可以调用 Saga.ExpectReplyToOriginator,但我没有看到像“ExpectNotReplyToOriginator”这样的东西。我尝试使用 .ExpectNotSend() 和 .ExpectNotPublish() 并且似乎都没有在我期望的地方失败。
当前版本的 NServiceBus.Testing 不支持您要查找的内容。
我在这里打开了一个问题:https ://github.com/Particular/NServiceBus.Testing/issues/40
什么时候完成我会告诉你的