Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/PersistenceRegistryTest.cs
===================================================================
diff -u -r268d5940d8ed4a65319179de7515eaf89586ad0a -rcf2b4ca40987c1f035b244cc80a382a2bf2cc12b
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/PersistenceRegistryTest.cs (.../PersistenceRegistryTest.cs) (revision 268d5940d8ed4a65319179de7515eaf89586ad0a)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/PersistenceRegistryTest.cs (.../PersistenceRegistryTest.cs) (revision cf2b4ca40987c1f035b244cc80a382a2bf2cc12b)
@@ -378,6 +378,7 @@
/// model is registered in the registry.
/// The action to perform to get the data model from
/// the registry.
+ /// Thrown when any input parameter is null.
/// public DerivedRegistryTest() : base(
/// (r, e, m) => r.Register(e, m),
/// (r, m) => r.Contains(m),
@@ -386,6 +387,19 @@
Func containsInRegistry,
Func getFromRegistry)
{
+ if (registerToRegistry == null)
+ {
+ throw new ArgumentNullException(nameof(registerToRegistry));
+ }
+ if (containsInRegistry == null)
+ {
+ throw new ArgumentNullException(nameof(containsInRegistry));
+ }
+ if (getFromRegistry == null)
+ {
+ throw new ArgumentNullException(nameof(getFromRegistry));
+ }
+
this.registerToRegistry = registerToRegistry;
this.containsInRegistry = containsInRegistry;
this.getFromRegistry = getFromRegistry;