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)
30Throw.InvalidOperationException("No redactor requested."); 64Throw.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)
53Throw.ArgumentException(nameof(options), r.ToString()); 79Throw.IfBufferTooSmall(destination.Length, str.Length, nameof(destination));
RedactedData.cs (2)
37Original = Throw.IfNull(original); 38Redacted = Throw.IfNull(redacted);