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

Unit testing async/await with VS2012 and later

Leave it to me to try the most complex solution first, and then later realize there was a far easier way to do it! OK, so I’m trying to develop a higher-quality version of an OWIN provider to work with

Posted in Uncategorized, Unit Testing, Visual Studio

New GitHub and NuGet package: Division42.Data-PCL

Ever since Xamarin 3 came out, several of us have been looking at ways to streamline the somewhat-painful task of writing apps for multiple platforms. Sure, Xamarin makes it so you can write C# code and deploy to Win8, WP8,

Posted in Apple Stuff, Computers and Internet, Development Tools, Entity Framework, Mobile, Mono, Professional Development, Uncategorized, Unit Testing, Visual Studio, WindowsPhone, WPF and MVVM

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

My take on aspConf 2012 – Day 1

I attended yesterday for Day 1, and will again today for Day 2 of 2. There were a LOT of interesting sessions. However, I think they have too many tracts. They have SIX rooms running simultaneously. Of those, you

Posted in Computers and Internet, Infrastructure, New Technology, Professional Development, Team Foundation Server, Uncategorized, Unit Testing, Visual Studio

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

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

Join 9 other followers