Devlico.Us
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @devlicious

Derik Whittaker

Thoughts on Software Development, .Net, OOP, Design Patterns and all things cool



StructureMap Change to ObjectFactory.ResetDefaults()

It appears that with the new release of StructureMap 2.4.9 (aka 2.5) the usage of ObjectFactory.ResetDefaults() has been replaced by ObjectFactory.Reset().

Now why is this important?  I used .ResetDefaults() in my unit tests when I wanted to reset the plugin graph (is that the correct term?) because I had injected a stub into the graph. 

I thought I would just mention this out there in case anyone else ran into this issue when they upgraded to StructureMap 2.5.

Till next time,

[----- Remember to check out DimeCasts.Net -----]



Comments

Using StructureMap to mock DataAccess in CSLA BO « maonet technotes said:

Pingback from  Using StructureMap to mock DataAccess in CSLA BO « maonet technotes

# August 18, 2008 10:26 AM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add

About Derik Whittaker

Derik is a .Net Developer/Architect specializing in WinForms working out the northern suburbs of Chicago. He is also believer and advocate for Agile development including SCRUM, TDD, CI, etc.

When Derik is not writing code he can be found spending time with his wife and young son, climbing on his bouldering wall, watching sports (mostly baseball), and generally vegging out. Check out Devlicio.us!

Our Sponsors

Red-Gate!