8 references to SetFakeRedactor
Microsoft.Extensions.Compliance.Testing.Tests (8)
RedactionFakesAcceptanceTests.cs (8)
100
.AddRedaction(x => x.
SetFakeRedactor
(x => { x.RedactionFormat = "xxx{0}xxx"; }, dc))
120
.AddRedaction(builder => builder.
SetFakeRedactor
(options => { options.RedactionFormat = "xxx{0}xxx"; }, dc))
140
.AddRedaction(builder => builder.
SetFakeRedactor
(options => { options.RedactionFormat = "xxx{0}xxx"; }, dc))
159
.AddRedaction(builder => builder.
SetFakeRedactor
(options => { options.RedactionFormat = "xxx{0}xxx"; }, dc))
179
.AddRedaction(builder => builder.
SetFakeRedactor
(options => { options.RedactionFormat = "xxx{0}xxx"; }, dc))
233
Assert.Throws<ArgumentNullException>(() => ((IRedactionBuilder)null!).
SetFakeRedactor
(x => x.RedactionFormat = "2", dc));
234
Assert.Throws<ArgumentNullException>(() => new ServiceCollection().AddRedaction(x => x.
SetFakeRedactor
((Action<FakeRedactorOptions>)null!, dc)));
236
Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddRedaction(x => x.
SetFakeRedactor
((Action<FakeRedactorOptions>)null!, dc)));