Using StructureMap, when a default concrete type is defined in one registry, can it be redefined in

Posted by Mark Rogers on Stack Overflow See other posts from Stack Overflow or by Mark Rogers
Published on 2010-05-10T19:49:00Z Indexed on 2010/05/10 19:54 UTC
Read the original article Hit count: 228

In the project I'm working on I have a StructureMap registry for the main web project and another registry for my integration tests. During some of the tests I wire up the web project's registry, so that I can get objects out of the container for testing.

In one case I want to be able to replace a default concrete type from the web registry with one in the test registry.

Is this possible?

How do you do it?

© Stack Overflow or respective owner

Related posts about structuremap

Related posts about ioc-container