Derik Whittaker

Syndication

News


Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
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 -----]


Posted 07-30-2008 6:52 AM by Derik Whittaker
Filed under:

[Advertisement]

Comments

Using StructureMap to mock DataAccess in CSLA BO « maonet technotes wrote Using StructureMap to mock DataAccess in CSLA BO « maonet technotes
on 08-18-2008 10:26 AM

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

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Subscribe
Google Reader or Homepage

del.icio.us CodeBetter.com Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl CodeBetter.com Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of Devlicio.us
Red-Gate Tools For SQL and .NET

NDepend

SlickEdit
 
SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
LiteAccounting.Com
DevExpress
Fixx
NHibernate Profiler
Unfuddle
Balsamiq Mockups
Scrumy
JetBrains - ReSharper
Umbraco
NServiceBus
RavenDb
Web Sequence Diagrams
Ducksboard<-- NEW Friend!

 



Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers

 

Community Server (Commercial Edition)