简体   繁体   中英

How to unit-test BizTalk maps containing e.g. DB functoids?

I am exploring the possibilities of unit-testing BizTalk Server 2010 artifacts with MSTest.

So currently I am testing maps (thanks to TestableMapBase ) and comparing outputs (using XmlDsigC14NTransform 's digested output) and all that works fine – now – but:

How can I properly unit-test a map containing eg a DatabaseLookupFunctoid and DatabaseValueExtractFunctoid , or perhaps simply a DateCurrentDateFunctoid ?

I experimented a bit with the Moles framework and that already allows me to solve the problem with the DateCurrentDateFunctoid , since it suffices to deroute DateTime.Now for that.

Still, I need to further check its possibilities or alternatives, without just pulling out the big guns like TypeMock or JustMock…

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM