Async and structuremap

Writing some async unittests in combination with structuremap gave me an ugly exception

System.MissingMethodException: Method not found: ‘Void StructureMap.AutoMocking.AutoMocker`1..ctor(StructureMap.AutoMocking.ServiceLocator)’.
Result StackTrace:
at StructureMap.AutoMocking.RhinoAutoMocker`1..ctor(MockMode mockMode)

After reading about the Structuremap 3.1 update the exceptions were gone. Updating the nuget to 3.1 solved it.

TLDR

update-package structuremap
Unknown's avatar

About erictummers

Working in a DevOps team is the best thing that happened to me. I like challenges and sharing the solutions with others. On my blog I’ll mostly post about my work, but expect an occasional home project, productivity tip and tooling review.
This entry was posted in Development and tagged , , , . Bookmark the permalink.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.