The Right Way to Do Automocking with Ninject(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 1 year, 8 months ago

While StructureMap is definitely my IoC container of choice, it’s not the only game in town. At my new job, our existing project uses Ninject. One of my first tasks at this new job was integrating my SpecsFor “framework” into the existing projects. The original version of SpecsFor worked with StructureMap and leveraged its auto-mocking container. While Ninject has an auto-mocking extension, ninject.moq, it is sorely lacking when compared to StructureMap’s offering. In this post, I’ll show you how to modify it into a useful automocking container, and I’ll also show you how easily SpecsFor can be adapted to Ninject using this working container.

add a comment |category: |Views: 138

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story