Kevin Rich

Unit Testing: Activate Easy Mode

The Four Horsemen: AutoMock, AutoFixture, Shouldly, and xUnit

Introduction

Yesterday, after presenting to the Willamette Valley Software Engineering meetup about Dependency Injection, an engineer by the name of Josh and I got to talking. After making an offhand comment about a testing framework combination I'd used, he got really excited. I figured I'd use this as an excuse to do a . . .

Read More

March 08, 2019

Using Dependency Injection for Implementation Enumeration

...There is probably a better name for this

Scenario

I'm building a system that will look at a lot of transaction data and determine if each transaction qualifies for one of many criteria. At a high level, I'm asking "Does this transaction qualify for any or all of sales criteria A, B, C,...,N?"

This entry will examine a poor approach without . . .

Read More

February 08, 2016

SMTP Service

...but why?

I've recently started adding the following interface to most of my web applications in which a requirement is to send automated email notifications.

using System.Net.Mail;

namespace MyApp.Core.Service
{
 public interface ISmtpService
 {
 void Send(MailMessage message);
 }
}

And the code . . .

Read More

January 31, 2016

Archive

Cover image credit: http://whoiskevinrich.com

This update link alerts you to new Silvrback admin blog posts. A green bubble beside the link indicates a new post. Click the link to the admin blog and the bubble disappears.

Got It!