2757869176
Add contract validation, SMTP delivery results, terminal failure context, neutral development seeding, and local Docker setup. Ref: IT-1033
17 lines
545 B
C#
17 lines
545 B
C#
namespace HrynCo.NotificationService.Services.Tests.EmailProcessing;
|
|
|
|
using HrynCo.NotificationService.Worker.Services.EmailProcessing;
|
|
|
|
public sealed class RecipientAddressRedactorTests
|
|
{
|
|
[Theory]
|
|
[InlineData("owner@example.com", "o***@e***.com")]
|
|
[InlineData("a@b.test", "a***@b***.test")]
|
|
[InlineData("invalid", "***")]
|
|
[InlineData(null, "<missing>")]
|
|
public void Redact_DoesNotExposeFullAddress(string? address, string expected)
|
|
{
|
|
Assert.Equal(expected, RecipientAddressRedactor.Redact(address));
|
|
}
|
|
}
|