41 references to PublicData
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (13)
Logging\IncomingHttpRouteUtilityTests.cs (2)
356{ "userId", FakeTaxonomy.PublicData } 410d.Add("userId", FakeTaxonomy.PublicData);
Logging\RequestHeadersEnricherTests.cs (11)
85{ HeaderKey4, FakeTaxonomy.PublicData } 90redactorProviderMock.Setup(x => x.GetRedactor(FakeTaxonomy.PublicData)) 118{ HeaderKey2, FakeTaxonomy.PublicData } 147{ HeaderKey1, FakeTaxonomy.PublicData }, 148{ HeaderKey3, FakeTaxonomy.PublicData } 174{ HeaderKey1, FakeTaxonomy.PublicData }, 175{ headerKey2, FakeTaxonomy.PublicData } 199{ HeaderKey1, FakeTaxonomy.PublicData } 226{ HeaderKey1, FakeTaxonomy.PublicData } 267{ HeaderKey1, FakeTaxonomy.PublicData } 272redactorProviderMock.Setup(x => x.GetRedactor(FakeTaxonomy.PublicData))
Microsoft.Extensions.Compliance.Abstractions.Tests (10)
Classification\DataClassificationSetTests.cs (10)
15var dc1 = new DataClassificationSet(FakeTaxonomy.PublicData); 16var dc2 = new DataClassificationSet(new[] { FakeTaxonomy.PublicData }); 17var dc3 = new DataClassificationSet(new List<DataClassification> { FakeTaxonomy.PublicData }); 18var dc4 = (DataClassificationSet)FakeTaxonomy.PublicData; 19var dc5 = DataClassificationSet.FromDataClassification(FakeTaxonomy.PublicData); 37var dc1 = new DataClassificationSet(FakeTaxonomy.PublicData); 38var dc2 = new DataClassificationSet(new[] { FakeTaxonomy.PublicData }); 39var dc3 = new DataClassificationSet(new List<DataClassification> { FakeTaxonomy.PublicData }); 40var dc4 = (DataClassificationSet)FakeTaxonomy.PublicData; 41var dc5 = DataClassificationSet.FromDataClassification(FakeTaxonomy.PublicData);
Microsoft.Extensions.Compliance.Redaction.Tests (1)
HmacRedactorExtensionsTests.cs (1)
49FakeTaxonomy.PublicData,
Microsoft.Extensions.Compliance.Testing (2)
FakeTaxonomy.cs (1)
26public static DataClassification PublicData => new(TaxonomyName, nameof(PublicData));
PublicDataAttribute.cs (1)
17: base(FakeTaxonomy.PublicData)
Microsoft.Extensions.Compliance.Testing.Tests (1)
AttributeTests.cs (1)
20Assert.Equal(FakeTaxonomy.PublicData, a.Classification);
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (1)
Benchmarks\HeadersReaderBenchmark.cs (1)
44options.RequestHeadersDataClasses.Add($"Header{i}", FakeTaxonomy.PublicData);
Microsoft.Extensions.Http.Diagnostics.Tests (11)
Logging\HttpClientLoggingExtensionsTest.cs (1)
342x.RequestHeadersDataClasses.Add(ClientName, FakeTaxonomy.PublicData);
Logging\HttpHeadersReaderTest.cs (10)
47mockHeadersRedactor.Setup(r => r.Redact(It.IsAny<IEnumerable<string>>(), FakeTaxonomy.PublicData)) 59{ "Header3", FakeTaxonomy.PublicData }, 60{ "Header4", FakeTaxonomy.PublicData }, 109mockHeadersRedactor.Setup(r => r.Redact(It.IsAny<IEnumerable<string>>(), FakeTaxonomy.PublicData)) 116{ "Header1", FakeTaxonomy.PublicData }, 117{ "Content-Header1", FakeTaxonomy.PublicData }, 118{ "Content-Type", FakeTaxonomy.PublicData } 122{ "Header3", FakeTaxonomy.PublicData }, 123{ "Content-Header2", FakeTaxonomy.PublicData }, 124{ "Content-Length", FakeTaxonomy.PublicData }
Microsoft.Extensions.Telemetry.Abstractions.Tests (2)
Logging\LoggerMessageStateTests.cs (2)
43lms.ClassifiedTagArray[index] = new(PropName, Value, new(FakeTaxonomy.PrivateData, FakeTaxonomy.PublicData)); 51Assert.Equal(new(FakeTaxonomy.PrivateData, FakeTaxonomy.PublicData), lms.ClassifiedTagArray[0].Classifications);