15 references to Throw
Microsoft.Extensions.Compliance.Testing (15)
FakeRedactionBuilderExtensions.cs (5)
30
_ =
Throw
.IfNull(builder);
47
_ =
Throw
.IfNull(builder);
48
_ =
Throw
.IfNull(configure);
69
_ =
Throw
.IfNull(builder);
70
_ =
Throw
.IfNull(section);
FakeRedactionCollector.cs (2)
30
Throw
.InvalidOperationException("No redactor requested.");
64
Throw
.InvalidOperationException("No data redacted.");
FakeRedactionServiceCollectionExtensions.cs (3)
26
_ =
Throw
.IfNull(services);
51
_ =
Throw
.IfNull(services);
52
_ =
Throw
.IfNull(configure);
FakeRedactionServiceProviderExtensions.cs (1)
26
=>
Throw
.IfNull(serviceProvider).GetRequiredService<FakeRedactionCollector>();
FakeRedactor.cs (2)
53
Throw
.ArgumentException(nameof(options), r.ToString());
79
Throw
.IfBufferTooSmall(destination.Length, str.Length, nameof(destination));
RedactedData.cs (2)
37
Original =
Throw
.IfNull(original);
38
Redacted =
Throw
.IfNull(redacted);