Clean Tests: Building Test Types

Posts in this series: A Primer Building Test Types Isolating Internal State Isolating the Database Isolation with Fakes Database Persistence In the primer, I described two types of tests I generally run into in my systems: Arrange/act/assert fully encapsulated in … Continue reading 

Posted in Testing | 12 Comments

AutoMapper support for ASP.NET 5.0 and ASP.NET Core 5.0

In the vein of “supporting all the frameworks”, I’ve extended AutoMapper to support ASP.NET 5.0 and CoreCLR (aspnetcore50). For those that are counting, I’m up to 11-12 different platforms supported, depending on how you tally: aspnet50 aspnetcore50 MonoAndroid MonoTouch net40 … Continue reading 

Posted in ASPdotNET, AutoMapper | 7 Comments

AutoMapper support for Xamarin Unified (64 bit)

I pushed out a prerelease package of AutoMapper for Xamarin Unified, including 64-bit support for iOS. http://www.nuget.org/packages/AutoMapper/ If you’ve had issues with Xamarin on 64-bit iOS, removing an adding the AutoMapper NuGet package reference should do the trick. And yes, … Continue reading 

Posted in AutoMapper | 2 Comments

Clean Tests: A Primer

Posts in this series: A Primer Building Test Types Isolating Internal State Isolating the Database Isolation with Fakes Database Persistence Over the course of my career, I’ve an opportunity to work with a number of long lived codebases. Ones that … Continue reading 

Posted in Testing | 10 Comments

Integrating MediatR with Web API

One of the design goals I had in mind with MediatR was to limit the 3rd party dependencies (and work) needed to integrate MediatR. To do so, I only take a dependency on CommonServiceLocator. In MediatR, I need to resolve … Continue reading 

Posted in MediatR | 11 Comments

Combating the lava-layer anti-pattern with rolling refactoring

Mike Hadlow blogged about the lava-layer anti-pattern, describing, which I have ranted about in nearly every talk I do, the nefarious issue of opinionated but lazy tech leads introducing new concepts into a system but never really seeing the idea … Continue reading 

Posted in Architecture, Design | 25 Comments

Generic variance in DI containers

DI containers, as complex as they might be, still provide quite a lot of value when it comes to defining and realizing the composition of your system. I use the variance features quite a bit, especially in my MediatR project … Continue reading 

Posted in Architecture | 32 Comments

Los Techies 2014 Year in Review

Another year of blogging, another year of inane, vapid and vacuous posts. But enough about my writing, let’s pore into the numbers behind blogging at Los Techies. We saw a departure of one of our most prolific bloggers in Derick … Continue reading 

Posted in Misc | 3 Comments

AutoMapper 3.3 feature: parameterized projections

Back in AutoMapper 3.1, I added a feature to allow for runtime values to be used in mappings: This worked great for runtime mappings, but wasn’t supported in the LINQ projections. These days, I’m pretty much solely using the LINQ … Continue reading 

Posted in AutoMapper | 11 Comments

AutoMapper 3.3 feature: Projection conversions

AutoMapper 3.3 introduced a few features to complement the mapping capabilities available in normal mapping. Just like you can do ConvertUsing for completely replacing conversion between two types, you can also supply a custom projection expression to replace the mapping … Continue reading 

Posted in AutoMapper | 2 Comments