using System.Collections.Generic; using ZB.MOM.WW.MxGateway.Server.Diagnostics; using Xunit; public class GatewayLogRedactorSeamTests { [Fact] public void Redact_MasksApiKeyInClientIdentity() { var redactor = new GatewayLogRedactorSeam(); var props = new Dictionary { ["ClientIdentity"] = "Bearer mxgw_operator01_super-secret" }; redactor.Redact(props); Assert.Equal("Bearer mxgw_operator01_[redacted]", props["ClientIdentity"]); } }