public void SetBody(string body, string contentType) { Body = IsBinaryContent(contentType) ? "<binary content>" : LoggingUtil.ObfuscateBody(body); ContentType = contentType; }
void CheckObfuscatedBodyWithMatches(string body) { string obfuscatedBody = LoggingUtil.ObfuscateBody(body); Assert.AreEqual(body, obfuscatedBody); }
void CheckObfuscateHeaderWithNoMatch(string name, string originalValue) { string obfuscatedValue = LoggingUtil.ObfuscateHeader(name, originalValue); Assert.AreEqual(originalValue, obfuscatedValue); }
public void SetBody(string body, string contentType) { Body = LoggingUtil.ObfuscateBody(body); ContentType = contentType; }