37 references to Contains
Microsoft.Extensions.Http.Diagnostics.Tests (37)
Logging\HttpClientLoggerTest.cs (37)
243logRecordState.Contains(HttpClientLoggingTagNames.Host, expectedLogRecord.Host);
245logRecordState.Contains(HttpClientLoggingTagNames.Path, TelemetryConstants.Redacted);
248logRecordState.Contains(HttpClientLoggingTagNames.RequestBody, expectedLogRecord.RequestBody);
249logRecordState.Contains(HttpClientLoggingTagNames.ResponseBody, expectedLogRecord.ResponseBody);
250logRecordState.Contains(TestExpectedRequestHeaderKey, expectedLogRecord.RequestHeaders[0].Value);
251logRecordState.Contains(TestExpectedResponseHeaderKey, expectedLogRecord.ResponseHeaders[0].Value);
252logRecordState.Contains(testSharedResponseHeaderKey, expectedLogRecord.ResponseHeaders[1].Value);
253logRecordState.Contains(testSharedRequestHeaderKey, expectedLogRecord.RequestHeaders[1].Value);
254logRecordState.Contains(testEnricher.KvpRequest.Key, expectedLogRecord.GetEnrichmentProperty(testEnricher.KvpRequest.Key));
340logRecordRequest.Contains(HttpClientLoggingTagNames.Host, expectedLogRecord.Host);
342logRecordRequest.Contains(HttpClientLoggingTagNames.Path, TelemetryConstants.Redacted);
343logRecordRequest.Contains(HttpClientLoggingTagNames.RequestBody, expectedLogRecord.RequestBody);
349logRecordFull.Contains(HttpClientLoggingTagNames.Host, expectedLogRecord.Host);
351logRecordFull.Contains(HttpClientLoggingTagNames.Path, TelemetryConstants.Redacted);
354logRecordFull.Contains(HttpClientLoggingTagNames.RequestBody, expectedLogRecord.RequestBody);
355logRecordFull.Contains(HttpClientLoggingTagNames.ResponseBody, expectedLogRecord.ResponseBody);
358logRecordFull.Contains(testEnricher.KvpRequest.Key, expectedLogRecord.GetEnrichmentProperty(testEnricher.KvpRequest.Key));
359logRecordFull.Contains(testEnricher.KvpResponse.Key, expectedLogRecord.GetEnrichmentProperty(testEnricher.KvpResponse.Key));
445logRecordState.Contains(HttpClientLoggingTagNames.Host, expectedLogRecord.Host);
447logRecordState.Contains(HttpClientLoggingTagNames.Path, TelemetryConstants.Redacted);
448logRecordState.Contains(HttpClientLoggingTagNames.RequestBody, expectedLogRecord.RequestBody);
452logRecordState.Contains(testEnricher.KvpRequest.Key, expectedLogRecord.GetEnrichmentProperty(testEnricher.KvpRequest.Key));
560logRecordState.Contains(HttpClientLoggingTagNames.Host, expectedLogRecord.Host);
562logRecordState.Contains(HttpClientLoggingTagNames.Path, TelemetryConstants.Redacted);
563logRecordState.Contains(HttpClientLoggingTagNames.RequestBody, expectedLogRecord.RequestBody);
567logRecordState.Contains(testEnricher.KvpRequest.Key, expectedLogRecord.GetEnrichmentProperty(testEnricher.KvpRequest.Key));
568logRecordState.Contains(testEnricher.KvpResponse.Key, expectedLogRecord.GetEnrichmentProperty(testEnricher.KvpResponse.Key));
650logRecordState.Contains(HttpClientLoggingTagNames.Host, expectedLogRecord.Host);
652logRecordState.Contains(HttpClientLoggingTagNames.Path, TelemetryConstants.Redacted);
655logRecordState.Contains(HttpClientLoggingTagNames.RequestBody, expectedLogRecord.RequestBody);
656logRecordState.Contains(HttpClientLoggingTagNames.ResponseBody, expectedLogRecord.ResponseBody);
659logRecordState.Contains(testEnricher.KvpRequest.Key, expectedLogRecord.GetEnrichmentProperty(testEnricher.KvpRequest.Key));
923logRecord.Contains(HttpClientLoggingTagNames.Host, expectedLogRecord.Host);
925logRecord.Contains(HttpClientLoggingTagNames.Path, TelemetryConstants.Redacted);
928logRecord.Contains(HttpClientLoggingTagNames.RequestBody, expectedLogRecord.RequestBody);
929logRecord.Contains(HttpClientLoggingTagNames.ResponseBody, expectedLogRecord.ResponseBody);
932logRecord.Contains(testEnricher.KvpRequest.Key, expectedLogRecord.GetEnrichmentProperty(testEnricher.KvpRequest.Key));