17 references to Instance
Microsoft.Extensions.Compliance.Abstractions (1)
Redaction\NullRedactorProvider.cs (1)
19
public Redactor GetRedactor(DataClassificationSet classifications) => NullRedactor.
Instance
;
Microsoft.Extensions.Compliance.Abstractions.Tests (11)
Redaction\NullRedactorTest.cs (4)
15
var r = NullRedactor.
Instance
;
28
var r = NullRedactor.
Instance
;
43
var r = NullRedactor.
Instance
;
55
var redactor1 = NullRedactor.
Instance
;
Redaction\RedactionAbstractionsExtensionsTest.cs (5)
17
Assert.Throws<ArgumentNullException>(() => RedactionStringBuilderExtensions.AppendRedacted(null!, NullRedactor.
Instance
, s));
25
var redactor = NullRedactor.
Instance
;
27
sb.AppendRedacted(NullRedactor.
Instance
,
42
sb.AppendRedacted(NullRedactor.
Instance
, string.Empty);
58
var r = NullRedactor.
Instance
;
Redaction\RedactorTest.cs (2)
36
Redactor r = NullRedactor.
Instance
;
47
var r = NullRedactor.
Instance
;
Microsoft.Extensions.Compliance.Redaction (2)
RedactionBuilder.cs (1)
30
Services.TryAddEnumerable(ServiceDescriptor.Singleton<Redactor>(NullRedactor.
Instance
));
RedactorProvider.cs (1)
43
redactors = [.. redactors, NullRedactor.
Instance
];
Microsoft.Extensions.Compliance.Redaction.Tests (3)
RedactorProviderTests.cs (3)
29
redactors: new Redactor[] { ErasingRedactor.Instance, NullRedactor.
Instance
},
48
redactors: new Redactor[] { ErasingRedactor.Instance, NullRedactor.
Instance
},
130
NullRedactor.
Instance
,