我有一个在 BizTalk (System.Xml.Document) 中接收任何文档类型的业务流程。看起来 Bizmonade 总是希望使用一种编排来指定一种不同于 ANY 的模式类型。
OrchestrationSimulator.Test<Dummy__Simulated>()
.When(MessageReceived.FromFile<CanonicalInvoice>(
Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"Test.Files\CanonicalInvoice.xml")))
.ExpectCompleted<Dummy__Simulated>()
.ExecuteTest();
任何想法如何使它与类似的东西一起工作:
OrchestrationSimulator.Test<Dummy__Simulated>()
.When(MessageReceived.FromFile<XmlDocument__Simulated>( // or not to specify at all?
Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"Test.Files\CanonicalInvoice.xml")))
.ExpectCompleted<Dummy__Simulated>()
.ExecuteTest();