Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 391 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 391 Bytes

selfishsmtp

Self-hosted smtp server for .net core testing

Does exactly that.

[Test]
public void WhenIDoAThing_ThenAnEmailIsSent() 
{
  using(var smtpServer = new SmtpServer(25))
  {
    var thingerer = new Thinger();
    thingerer.SendEmail("[email protected]", "[email protected]", "This is an email!");
    
    Assert.That(smtpServer.Messages.Count, Is.EqualTo(1));
  }
}