Пример #1
0
        public void When_response_has_sensitive_property_then_nothing_is_returned_for_raw_content_logging()
        {
            var request = new MyRequest();

            var response = new Response <MyResponse> {
                Data = new MyResponse()
            };

            var result = request.GetRawResponseContentForLogging(JsonConvert.SerializeObject(response), "application/json");

            Assert.AreEqual("Response contains sensitive information", result);
        }