Skip to content

ElegantCode

Day: February 23, 2010

    • Home
    • 2010
    • February
    • 23
23 Feb
2010

Note to self: Asp.Net MVC Controllers are not Code Behind

By: Chris Brandsma Category:UncategorizedTag: Asp.Net MVC, TDD:

Sometimes I think things are more complicated than they really are.  I got my head into a bind recently when I had some code that I really wanted under test in a Controller Action. My first thought was “Crap, this is going to be rough”.  Mainly I was still thinking of my time trying to […]

Read More
23 Feb
2010

MSpec and Auto Mocking

By: Jan Van Ryswyck Category:UncategorizedTag: BDD, Unit Testing:4 Comments on MSpec and Auto Mocking

In my previous post, I explained how to get started with Machine.Specifications (or MSpec for short) and showed you how the syntax for context/specifications looks like when using this BDD framework. For this post, I want to show you how to use an auto mocking container (we?ll be using the one provided by StructureMap off […]

Read More

Find me

RSS
Facebook
Twitter
LinkedIn

Disclaimer

The opinions and content expressed here are my own and not those of my employer.

Recent Posts

  • Rebooting the Azure for Executives Podcast with Landing Zones
  • Refactoring Bloated Controllers with [FromService]
  • Refactoring Bloated Controllers with IServiceProvider
  • Life’s a Party: Analyzing Party Compositions for Combat – Encounters in Dungeons & Dragons Fifth Edition through Monte Carlo Methods
  • Getting Azure API Access Token Via OAuth or MSAL

Find

Recent Articles

  • Rebooting the Azure for Executives Podcast with Landing Zones
  • Refactoring Bloated Controllers with [FromService]
  • Refactoring Bloated Controllers with IServiceProvider
  • Life’s a Party: Analyzing Party Compositions for Combat – Encounters in Dungeons & Dragons Fifth Edition through Monte Carlo Methods
  • Getting Azure API Access Token Via OAuth or MSAL

Recent Comments

  • b.juraga on Refactoring Bloated Controllers with [FromService]
  • The Morning Brew - Chris Alcock » The Morning Brew #3600 on Refactoring Bloated Controllers with [FromService]
  • Andreas on Refactoring Bloated Controllers with [FromService]
  • Refactoring Bloated Controllers with [FromService] - ElegantCode on Refactoring Bloated Controllers with IServiceProvider
  • David Starr on Refactoring Bloated Controllers with IServiceProvider

Proudly powered by WordPress | Me on Mastodon