Blog Archives

New Github and Nuget Package: Division42.Data.Repository.EntityFramework

OK, this is it! If you are a developer and have talked to me about a relational database in the past year or two, you no doubt have heard my long-winded speeches on how I like the “Repository Pattern” on

Posted in Best-practices, Computers and Internet, Development Tools, DI and IOC, Entity Framework, General, New Technology, Open Source, Organization will set you free, Professional Development, Uncategorized, Unit Testing

MongoDB ASP.NET Membership Provider and Repository

I’m continuing to plug along on my little project. One of the decision points I had was: should I handle authentication and authorization with a standard SQL server (since that is built-in, with the ASP.NET Provider Model) – and then

Posted in ASP.NET, ASP.NET MVC, DI and IOC, MongoDB, NoSQL, Security, SQL, Uncategorized, Unit Testing

Unit testing against a rigid, closed design

I mentioned in a previous post about how one might unit test a class that uses MessageBox.Show – a UI element that requires interaction. We discussed using a delegate to “swap out” the implementation after-the-fact. Ideally, if functionality is written

Posted in .NET 3.5, .NET 4.0, ASP.NET, ASP.NET MVC, Best-practices, DI and IOC, NETMF, Professional Development, Uncategorized, Unit Testing, WinForms, WPF and MVVM

Unit testing a MessageBox.Show

I have an extension method that does a .ToMessageBox(..). As you might imagine, when I try to test this with a unit test, it pops up a message box and hangs the unit test framework until I click OK. This

Posted in .NET 3.5, .NET 4.0, Best-practices, DI and IOC, Uncategorized, Unit Testing, WinForms

The Microsoft Unity Application Block

So at work, we’re talking about which products we would need along with Visual Studio 2010. Now that we’re all doing unit testing, the need for a mocking framework and DI container now is starting to become more important. In

Posted in DI and IOC, Uncategorized
Archives
Categories

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 9 other followers