in

 

Browse by Tags

  • The Rhino.Mocks' AssertWasCalled method does work

    This behavior is probably clearly specified somewhere, but somehow it has been non-obvious to the four people on our team to the point that we were leaning toward banning its use. I didn’t want to go that far, so figured I better figure out the rules. I’m referring to the AssertWasCalled extension method...
    Posted to Joshua Flanagan (Weblog) by Joshua Flanagan on 09-25-2008
  • Integrating StructureMap and NHibernate with WCF

    Following many examples I found online for other IoC containers, I borrowed utilized those designs to create a StructureMap instance provider . One problem we ran into with that design was dealing with NHibernate. Mainly, there are two types that are very important to care about when using NHibernate...
    Posted to Jimmy Bogard (Weblog) by bogardj on 09-16-2008
  • Some IoC Container guidelines

    So Derick Bailey asked me the other day a few weeks ago to describe how we use our IoC container. I wouldn't call it "best practices", though some of these tips came from the creator of our container of choice, StructureMap (Jeremy Miller). Although IoC containers are everywhere these days...
    Posted to Jimmy Bogard (Weblog) by bogardj on 09-12-2008
  • Building arrays in StructureMap 2.5

    Although it was possible in previous versions of StructureMap, the new fluent interface for StructureMap configuration in version 2.5 allows easy configuration of array type constructor parameters. For example, consider a simple order processor pipeline: public class OrderPipeline { private readonly...
    Posted to Jimmy Bogard (Weblog) by bogardj on 09-03-2008
  • StuctureMap: Advanced-level Usage Scenarios (Part 1: Type/Convention Scanners)

    I’ll start with my strong hand on the advanced StructureMap-foo and go straight to the type scanners (a.k.a. convention scanners).  Thankfully, there was a thread on the StructureMap Users mailing list with just the kind of problem these things solve. I’ll use that problem as the strawman for this...
    Posted to Chad Myers' Blog (Weblog) by chadmyers on 08-01-2008
  • Integrating StructureMap with WCF

    When developing with an IoC container like StructureMap, eventually some place in your code you will need to call the registry to instantiate your classes with their dependencies. With StructureMap, this means a call to ObjectFactory.GetInstance. Ideally, we'd like to limit the number of places the...
    Posted to Jimmy Bogard (Weblog) by bogardj on 07-29-2008
  • StructureMap: Interlude

    I'm trying to wrap up the "StructureMap: Advanced Scenarios Usage" post. In the meantime, I wanted to make you aware of a few things: I just updated my StructureMap: Basic Scenario Usage post with a correction. I was mistaken about being able to set properties on configured objects. Currently...
    Posted to Chad Myers' Blog (Weblog) by chadmyers on 07-26-2008
  • StructureMap: Medium-level Usage Scenarios

    This is a follow-on to my previous post about basic usage scenarios for StructureMap .  This post will focus on slightly more advanced usage scenarios and how StructureMap handles them.  For those playing the home game, I’m still working on the ‘Exploring ShadeTree’ series, but it’s hit a small...
    Posted to Chad Myers' Blog (Weblog) by chadmyers on 07-17-2008
  • StructureMap: Basic Scenario Usage

    First, I'm going to assume that you are somewhat already familiar with the concepts of Dependency Injection and what, in general, an Inversion of Control Container is for. If not, you may find these links helpful: http://www.martinfowler.com/articles/injection.html http://codebetter.com/blogs/jeremy...
    Posted to Chad Myers' Blog (Weblog) by chadmyers on 07-15-2008
  • StructureMap Users mailing list set up

    In preparation for the upcoming 2.5 release of StructureMap, and since I can't stand SourceForge's mailing list and forum capabilities, I set up a mailing list via Google Groups for users of StructureMap to discuss usage, give and receive support, etc. We'd like to start moving all support...
    Posted to Chad Myers' Blog (Weblog) by chadmyers on 07-15-2008
Page 1 of 2 (11 items) 1 2 Next >
Copyright Los Techies 2007. All rights reserved.
Powered by Community Server (Commercial Edition), by Telligent Systems