A A
RSS

Tag Archive | "Programming"

Mocking and Dependency Injection in ASP.NET MVC

Wednesday, August 27, 2008

View Comments

Here is the situation, my controller constructors take multiple interfaces as parameters.  I do this in order to use constructor injection which allows me to inject the controllers with mocked objects in my unit tests. For example, my AccountController takes IEmailService, IFormsAuthentication and MembershipProvider (abstract class) as parameters. During my testing, I want to mock [...]

Ninject: Killer IoC

Thursday, August 21, 2008

View Comments

In my previous post, The Best IoC Container, I decided to go with StructureMap as the framework of choice.  I received a comment telling me to check out Ninject and then a day or two after, I saw Corey Gaudin’s post on using Ninject with MVC, so I decided to try it out. It wasn’t [...]

The Best IoC Container?

Monday, August 18, 2008

View Comments

As I previously mentioned in my post “The Best JavaScript Library“, I am in the process of developing an application/writing a book.  I will be using asp.net MVC and a TDD approach to the application and book.  As I have done with the JavaScript framework selection, I decided to look around and evaluate/review my options [...]

Database Schema Compare & Upgrade

Thursday, July 10, 2008

View Comments

I spent a few days playing with Ruby on Rails a while back.  During the learning experience, there was one particular feature that I really liked.  It was the database migration scripts that get automatically generated for you.  I always wished I had something like this in the windows (asp.net) world.  It turns out there [...]

Unit Test Private Methods in Visual Studio

Wednesday, July 9, 2008

View Comments

I am working on a feature that will let me import twitter messages to yonkly and wanted to write a test for it.  The method is private and I couldn’t get the unit test to see it.  I also didn’t want to use the private accessor class generate by Visual Studio because I was mocking [...]

.net AJAX ASP.NET ASP.NET MVC aspnetmvc Blogging Books C# database di Funny Interesting ioc iPhone jquery Lifestyle LINQ Mac mvc mvcbook MVC Book ninject Open Source php Productivity Programming Random ror ruby Silverlight Software SQL Startup tdd Testing tips Tips & Tricks Uncategorized vb.net Video Visual Studio Web Design Web Dev wordpress Yonkly
Advertise Here

What I'm Doing...

Recent Posts

Yonkly Open Source

Sign up for my newsletter




* = required field

powered by MailChimp!

megree Widget

Apparently, I am connected to Obama. Check this out...
My path to Obama

Cyber Identity