Posts Tagged ‘C#’

I was writing some WCF services recently (driving development with unit tests, naturally) and eventually bumped into the problem I guess all authors of WCF services eventually bump into. I had to use the OperationContext.Current. A bit of googling revealed, unsurprisingly, I’m not the only person struggling to mock the OperationContext. It turns out there [...]

Tuesday, January 17th, 2012 at 11:04 | 0 comments
Categories: Uncategorized
Tags: , ,

Ever since I started writing windows applications, even though most of them were not in C or C++, almost every time I would refer back to Charles Petzold’s Programming Windows. Whether it was Visual Basic, Delphi, .NET or even Java, there would eventually come a point, where the only way to achieve something would be [...]

Wednesday, August 25th, 2010 at 19:08 | 5 comments
Categories: Uncategorized

I found myself today needing some simple DTO classes for unit tests to extend existing services and controllers. We’re using .NET 3.5 so Object and Collection Initializers come in really handy for mocking out services and providing data. If the object graph is somewhat bigger crafting the data by hand is quick but somewhat cumbersome. [...]

Tuesday, June 29th, 2010 at 13:21 | 0 comments
Categories: Uncategorized
TOP

Switch to our mobile site