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, "")] public void Redact_DoesNotExposeFullAddress(string? address, string expected) { Assert.Equal(expected, RecipientAddressRedactor.Redact(address)); } }