11 references to AddFakeRedaction
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Logging\AcceptanceTests.Mvc.cs (1)
39
.
AddFakeRedaction
(x => x.RedactionFormat = RedactedFormat)
Logging\AcceptanceTests.Routing.cs (1)
30
.
AddFakeRedaction
(x => x.RedactionFormat = RedactedFormat)
Microsoft.Extensions.Compliance.Testing.Tests (5)
RedactionFakesAcceptanceTests.cs (5)
139
.
AddFakeRedaction
(_ => { })
180
.
AddFakeRedaction
(_ => { })
201
.
AddFakeRedaction
(x => x.RedactionFormat = redactionFormat)
238
Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).
AddFakeRedaction
(_ => { }));
239
Assert.Throws<ArgumentNullException>(() => new ServiceCollection().
AddFakeRedaction
(null!));
Microsoft.Extensions.Http.Diagnostics.Tests (4)
Logging\AcceptanceTests.cs (3)
297
.
AddFakeRedaction
(o => o.RedactionFormat = "REDACTED:{0}")
343
.
AddFakeRedaction
(o => o.RedactionFormat = "<REDACTED:{0}>")
408
.
AddFakeRedaction
(o => o.RedactionFormat = "REDACTED:{0}")
Logging\HttpRequestReaderTest.cs (1)
592
.
AddFakeRedaction
(configureRedaction ?? (_ => { }))