コード例 #1
0
 public void SetBody(string body, string contentType)
 {
     Body        = IsBinaryContent(contentType) ? "<binary content>" : LoggingUtil.ObfuscateBody(body);
     ContentType = contentType;
 }
コード例 #2
0
        void CheckObfuscatedBodyWithMatches(string body)
        {
            string obfuscatedBody = LoggingUtil.ObfuscateBody(body);

            Assert.AreEqual(body, obfuscatedBody);
        }
コード例 #3
0
        void CheckObfuscateHeaderWithNoMatch(string name, string originalValue)
        {
            string obfuscatedValue = LoggingUtil.ObfuscateHeader(name, originalValue);

            Assert.AreEqual(originalValue, obfuscatedValue);
        }
コード例 #4
0
 public void SetBody(string body, string contentType)
 {
     Body        = LoggingUtil.ObfuscateBody(body);
     ContentType = contentType;
 }