Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Create/PersistenceRegistry.cs =================================================================== diff -u -ra0e52fbfb95d4930abf6e828fc87e6f4834fb55a -r268d5940d8ed4a65319179de7515eaf89586ad0a --- Application/Ringtoets/src/Application.Ringtoets.Storage/Create/PersistenceRegistry.cs (.../PersistenceRegistry.cs) (revision a0e52fbfb95d4930abf6e828fc87e6f4834fb55a) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Create/PersistenceRegistry.cs (.../PersistenceRegistry.cs) (revision 268d5940d8ed4a65319179de7515eaf89586ad0a) @@ -69,6 +69,9 @@ private readonly Dictionary pipingSoilProfiles = CreateDictionary(); + private readonly Dictionary pipingSurfaceLines = + CreateDictionary(); + private readonly Dictionary macroStabilityInwardsStochasticSoilModels = CreateDictionary(); @@ -81,8 +84,8 @@ private readonly Dictionary macroStabilityInwardsSoil2DProfiles = CreateDictionary(); - private readonly Dictionary surfaceLines = - CreateDictionary(); + private readonly Dictionary macroStabilityInwardsSurfaceLines = + CreateDictionary(); private readonly Dictionary hydraulicLocations = CreateDictionary(); @@ -270,11 +273,23 @@ { Register(pipingSoilProfiles, entity, model); } - + /// /// Registers a create operation for and the /// that was constructed with the information. /// + /// The to be registered. + /// The to be registered. + /// Thrown any of the input parameters is null. + internal void Register(SurfaceLineEntity entity, PipingSurfaceLine model) + { + Register(pipingSurfaceLines, entity, model); + } + + /// + /// Registers a create operation for and the + /// that was constructed with the information. + /// /// The to be registered. /// The to be registered. /// Thrown any of the input parameters is null. @@ -324,11 +339,11 @@ /// that was constructed with the information. /// /// The to be registered. - /// The to be registered. + /// The to be registered. /// Thrown any of the input parameters is null. - internal void Register(SurfaceLineEntity entity, PipingSurfaceLine model) + internal void Register(SurfaceLineEntity entity, MacroStabilityInwardsSurfaceLine model) { - Register(surfaceLines, entity, model); + Register(macroStabilityInwardsSurfaceLines, entity, model); } /// @@ -445,10 +460,21 @@ { return ContainsValue(pipingSoilProfiles, model); } - + /// /// Checks whether a create operations has been registered for the given . /// + /// The to check for. + /// true if the was registered before, false otherwise. + /// Thrown when is null. + internal bool Contains(PipingSurfaceLine model) + { + return ContainsValue(pipingSurfaceLines, model); + } + + /// + /// Checks whether a create operations has been registered for the given . + /// /// The to check for. /// true if the was registered before, false otherwise. /// Thrown when is null. @@ -493,34 +519,34 @@ /// /// Checks whether a create operations has been registered for the given . /// - /// The to check for. + /// The to check for. /// true if the was registered before, false otherwise. /// Thrown when is null. - internal bool Contains(HydraulicBoundaryLocation model) + internal bool Contains(MacroStabilityInwardsSurfaceLine model) { - return ContainsValue(hydraulicLocations, model); + return ContainsValue(macroStabilityInwardsSurfaceLines, model); } - + /// /// Checks whether a create operations has been registered for the given . /// - /// The to check for. + /// The to check for. /// true if the was registered before, false otherwise. /// Thrown when is null. - internal bool Contains(DuneLocation model) + internal bool Contains(HydraulicBoundaryLocation model) { - return ContainsValue(duneLocations, model); + return ContainsValue(hydraulicLocations, model); } /// /// Checks whether a create operations has been registered for the given . /// - /// The to check for. + /// The to check for. /// true if the was registered before, false otherwise. /// Thrown when is null. - internal bool Contains(PipingSurfaceLine model) + internal bool Contains(DuneLocation model) { - return ContainsValue(surfaceLines, model); + return ContainsValue(duneLocations, model); } /// @@ -706,6 +732,23 @@ } /// + /// Obtains the which was registered for the given + /// . + /// + /// The for which a + /// read operation has been registered. + /// The constructed . + /// Thrown when is null. + /// Thrown when no create operation + /// has been registered for . + /// Use to find out + /// whether a create operation has been registered for . + internal SurfaceLineEntity Get(PipingSurfaceLine model) + { + return Get(pipingSurfaceLines, model); + } + + /// /// Obtains the which was registered for /// the given . /// @@ -777,17 +820,17 @@ /// Obtains the which was registered for the given /// . /// - /// The for which a + /// The for which a /// read operation has been registered. /// The constructed . /// Thrown when is null. /// Thrown when no create operation /// has been registered for . - /// Use to find out + /// Use to find out /// whether a create operation has been registered for . - internal SurfaceLineEntity Get(PipingSurfaceLine model) + internal SurfaceLineEntity Get(MacroStabilityInwardsSurfaceLine model) { - return Get(surfaceLines, model); + return Get(macroStabilityInwardsSurfaceLines, model); } ///