Kevin Rich
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 . . .
Posted in: asp.netmoqsmtptddtest-driven-development
January 31, 2016
Cover image credit: http://whoiskevinrich.com