Index: Demo/Ringtoets/src/Demo.Ringtoets/Commands/AddNewDemoAssessmentSectionCommand.cs =================================================================== diff -u -r2ab087c5f7b254eb7ea6d167b122afaea10b0ff6 -rf9db544ad22552799aaaedc2a154abd8765f7099 --- Demo/Ringtoets/src/Demo.Ringtoets/Commands/AddNewDemoAssessmentSectionCommand.cs (.../AddNewDemoAssessmentSectionCommand.cs) (revision 2ab087c5f7b254eb7ea6d167b122afaea10b0ff6) +++ Demo/Ringtoets/src/Demo.Ringtoets/Commands/AddNewDemoAssessmentSectionCommand.cs (.../AddNewDemoAssessmentSectionCommand.cs) (revision f9db544ad22552799aaaedc2a154abd8765f7099) @@ -123,9 +123,9 @@ demoAssessmentSection.BackgroundData.IsVisible = targetConfiguration.IsVisible; demoAssessmentSection.BackgroundData.Transparency = targetConfiguration.Transparency; demoAssessmentSection.BackgroundData.IsConfigured = targetConfiguration.IsConfigured; - demoAssessmentSection.BackgroundData.Parameters.Add("SourceCapabilitiesUrl", targetConfiguration.SourceCapabilitiesUrl); - demoAssessmentSection.BackgroundData.Parameters.Add("SelectedCapabilityIdentifier", targetConfiguration.SelectedCapabilityIdentifier); - demoAssessmentSection.BackgroundData.Parameters.Add("PreferredFormat", targetConfiguration.PreferredFormat); + demoAssessmentSection.BackgroundData.Parameters.Add(BackgroundDataIdentifiers.SourceCapabilitiesUrl, targetConfiguration.SourceCapabilitiesUrl); + demoAssessmentSection.BackgroundData.Parameters.Add(BackgroundDataIdentifiers.SelectedCapabilityIdentifier, targetConfiguration.SelectedCapabilityIdentifier); + demoAssessmentSection.BackgroundData.Parameters.Add(BackgroundDataIdentifiers.PreferredFormat, targetConfiguration.PreferredFormat); } private void InitializeDemoReferenceLine(AssessmentSection demoAssessmentSection) Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismViewTest.cs =================================================================== diff -u -r3629ac885ef54cf9bb8e7f4be48a50e45b0c8eae -rf9db544ad22552799aaaedc2a154abd8765f7099 --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismViewTest.cs (.../ClosingStructuresFailureMechanismViewTest.cs) (revision 3629ac885ef54cf9bb8e7f4be48a50e45b0c8eae) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismViewTest.cs (.../ClosingStructuresFailureMechanismViewTest.cs) (revision f9db544ad22552799aaaedc2a154abd8765f7099) @@ -437,9 +437,9 @@ BackgroundData backgroundData = assessmentSection.BackgroundData; backgroundData.Name = "some Name"; - backgroundData.Parameters["SourceCapabilitiesUrl"] = "some URL"; - backgroundData.Parameters["SelectedCapabilityIdentifier"] = "some Identifier"; - backgroundData.Parameters["PreferredFormat"] = "image/some Format"; + backgroundData.Parameters[BackgroundDataIdentifiers.SourceCapabilitiesUrl] = "some URL"; + backgroundData.Parameters[BackgroundDataIdentifiers.SelectedCapabilityIdentifier] = "some Identifier"; + backgroundData.Parameters[BackgroundDataIdentifiers.PreferredFormat] = "image/some Format"; backgroundData.IsConfigured = true; // When Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Views/RingtoetsBackgroundMapDataFactory.cs =================================================================== diff -u -r7a4f8ff71ae5f81177fe5ff9cd78fdc7f24c69f4 -rf9db544ad22552799aaaedc2a154abd8765f7099 --- Ringtoets/Common/src/Ringtoets.Common.Forms/Views/RingtoetsBackgroundMapDataFactory.cs (.../RingtoetsBackgroundMapDataFactory.cs) (revision 7a4f8ff71ae5f81177fe5ff9cd78fdc7f24c69f4) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/Views/RingtoetsBackgroundMapDataFactory.cs (.../RingtoetsBackgroundMapDataFactory.cs) (revision f9db544ad22552799aaaedc2a154abd8765f7099) @@ -100,9 +100,9 @@ if (backgroundData.IsConfigured) { - mapData.Configure(backgroundData.Parameters["SourceCapabilitiesUrl"], - backgroundData.Parameters["SelectedCapabilityIdentifier"], - backgroundData.Parameters["PreferredFormat"]); + mapData.Configure(backgroundData.Parameters[BackgroundDataIdentifiers.SourceCapabilitiesUrl], + backgroundData.Parameters[BackgroundDataIdentifiers.SelectedCapabilityIdentifier], + backgroundData.Parameters[BackgroundDataIdentifiers.PreferredFormat]); } mapData.IsVisible = backgroundData.IsVisible; Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/BackgroundDataTestDataGeneratorTest.cs =================================================================== diff -u -rbb9508f9833f710b3cd448b82dd1a146ec928b42 -rf9db544ad22552799aaaedc2a154abd8765f7099 --- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/BackgroundDataTestDataGeneratorTest.cs (.../BackgroundDataTestDataGeneratorTest.cs) (revision bb9508f9833f710b3cd448b82dd1a146ec928b42) +++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/BackgroundDataTestDataGeneratorTest.cs (.../BackgroundDataTestDataGeneratorTest.cs) (revision f9db544ad22552799aaaedc2a154abd8765f7099) @@ -44,9 +44,9 @@ Assert.AreEqual(mapData.IsVisible, backgroundData.IsVisible); Assert.AreEqual(mapData.Transparency, backgroundData.Transparency); Assert.AreEqual(3, backgroundData.Parameters.Count); - Assert.AreEqual(mapData.SourceCapabilitiesUrl, backgroundData.Parameters["SourceCapabilitiesUrl"]); - Assert.AreEqual(mapData.SelectedCapabilityIdentifier, backgroundData.Parameters["SelectedCapabilityIdentifier"]); - Assert.AreEqual(mapData.PreferredFormat, backgroundData.Parameters["PreferredFormat"]); + Assert.AreEqual(mapData.SourceCapabilitiesUrl, backgroundData.Parameters[BackgroundDataIdentifiers.SourceCapabilitiesUrl]); + Assert.AreEqual(mapData.SelectedCapabilityIdentifier, backgroundData.Parameters[BackgroundDataIdentifiers.SelectedCapabilityIdentifier]); + Assert.AreEqual(mapData.PreferredFormat, backgroundData.Parameters[BackgroundDataIdentifiers.PreferredFormat]); } [Test] Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/BackgroundDataTestDataGenerator.cs =================================================================== diff -u -rbb9508f9833f710b3cd448b82dd1a146ec928b42 -rf9db544ad22552799aaaedc2a154abd8765f7099 --- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/BackgroundDataTestDataGenerator.cs (.../BackgroundDataTestDataGenerator.cs) (revision bb9508f9833f710b3cd448b82dd1a146ec928b42) +++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/BackgroundDataTestDataGenerator.cs (.../BackgroundDataTestDataGenerator.cs) (revision f9db544ad22552799aaaedc2a154abd8765f7099) @@ -47,9 +47,9 @@ if (wmtsMapData.IsConfigured) { - backgroundMapData.Parameters["SourceCapabilitiesUrl"] = wmtsMapData.SourceCapabilitiesUrl; - backgroundMapData.Parameters["SelectedCapabilityIdentifier"] = wmtsMapData.SelectedCapabilityIdentifier; - backgroundMapData.Parameters["PreferredFormat"] = wmtsMapData.PreferredFormat; + backgroundMapData.Parameters[BackgroundDataIdentifiers.SourceCapabilitiesUrl] = wmtsMapData.SourceCapabilitiesUrl; + backgroundMapData.Parameters[BackgroundDataIdentifiers.SelectedCapabilityIdentifier] = wmtsMapData.SelectedCapabilityIdentifier; + backgroundMapData.Parameters[BackgroundDataIdentifiers.PreferredFormat] = wmtsMapData.PreferredFormat; } return backgroundMapData; Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/FailureMechanismViewTest.cs =================================================================== diff -u -r3629ac885ef54cf9bb8e7f4be48a50e45b0c8eae -rf9db544ad22552799aaaedc2a154abd8765f7099 --- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/FailureMechanismViewTest.cs (.../FailureMechanismViewTest.cs) (revision 3629ac885ef54cf9bb8e7f4be48a50e45b0c8eae) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/FailureMechanismViewTest.cs (.../FailureMechanismViewTest.cs) (revision f9db544ad22552799aaaedc2a154abd8765f7099) @@ -378,9 +378,9 @@ BackgroundData backgroundData = assessmentSection.BackgroundData; backgroundData.Name = "some Name"; - backgroundData.Parameters["SourceCapabilitiesUrl"] = "some URL"; - backgroundData.Parameters["SelectedCapabilityIdentifier"] = "some Identifier"; - backgroundData.Parameters["PreferredFormat"] = "image/some Format"; + backgroundData.Parameters[BackgroundDataIdentifiers.SourceCapabilitiesUrl] = "some URL"; + backgroundData.Parameters[BackgroundDataIdentifiers.SelectedCapabilityIdentifier] = "some Identifier"; + backgroundData.Parameters[BackgroundDataIdentifiers.PreferredFormat] = "image/some Format"; backgroundData.IsConfigured = true; // When Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/RingtoetsBackgroundMapDataFactoryTest.cs =================================================================== diff -u -r3629ac885ef54cf9bb8e7f4be48a50e45b0c8eae -rf9db544ad22552799aaaedc2a154abd8765f7099 --- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/RingtoetsBackgroundMapDataFactoryTest.cs (.../RingtoetsBackgroundMapDataFactoryTest.cs) (revision 3629ac885ef54cf9bb8e7f4be48a50e45b0c8eae) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/RingtoetsBackgroundMapDataFactoryTest.cs (.../RingtoetsBackgroundMapDataFactoryTest.cs) (revision f9db544ad22552799aaaedc2a154abd8765f7099) @@ -155,13 +155,13 @@ WmtsMapData wmtsMapData = WmtsMapData.CreateDefaultPdokMapData(); BackgroundData backgroundData = BackgroundDataTestDataGenerator.GetWmtsBackgroundMapData(wmtsMapData); - string originalSourceCapabilitiesUrl = backgroundData.Parameters["SourceCapabilitiesUrl"]; - string originalSelectedCapabilityIdentifier = backgroundData.Parameters["SelectedCapabilityIdentifier"]; - string originalPreferredFormat = backgroundData.Parameters["PreferredFormat"]; + string originalSourceCapabilitiesUrl = backgroundData.Parameters[BackgroundDataIdentifiers.SourceCapabilitiesUrl]; + string originalSelectedCapabilityIdentifier = backgroundData.Parameters[BackgroundDataIdentifiers.SelectedCapabilityIdentifier]; + string originalPreferredFormat = backgroundData.Parameters[BackgroundDataIdentifiers.PreferredFormat]; - backgroundData.Parameters["SourceCapabilitiesUrl"] = "some/url"; - backgroundData.Parameters["SelectedCapabilityIdentifier"] = "identifier"; - backgroundData.Parameters["PreferredFormat"] = "image/format"; + backgroundData.Parameters[BackgroundDataIdentifiers.SourceCapabilitiesUrl] = "some/url"; + backgroundData.Parameters[BackgroundDataIdentifiers.SelectedCapabilityIdentifier] = "identifier"; + backgroundData.Parameters[BackgroundDataIdentifiers.PreferredFormat] = "image/format"; // Call RingtoetsBackgroundMapDataFactory.UpdateBackgroundMapData(wmtsMapData, backgroundData); Index: Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Forms.Test/Views/DuneErosionFailureMechanismViewTest.cs =================================================================== diff -u -r3629ac885ef54cf9bb8e7f4be48a50e45b0c8eae -rf9db544ad22552799aaaedc2a154abd8765f7099 --- Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Forms.Test/Views/DuneErosionFailureMechanismViewTest.cs (.../DuneErosionFailureMechanismViewTest.cs) (revision 3629ac885ef54cf9bb8e7f4be48a50e45b0c8eae) +++ Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Forms.Test/Views/DuneErosionFailureMechanismViewTest.cs (.../DuneErosionFailureMechanismViewTest.cs) (revision f9db544ad22552799aaaedc2a154abd8765f7099) @@ -356,9 +356,9 @@ BackgroundData backgroundData = assessmentSection.BackgroundData; backgroundData.Name = "some Name"; - backgroundData.Parameters["SourceCapabilitiesUrl"] = "some URL"; - backgroundData.Parameters["SelectedCapabilityIdentifier"] = "some Identifier"; - backgroundData.Parameters["PreferredFormat"] = "image/some Format"; + backgroundData.Parameters[BackgroundDataIdentifiers.SourceCapabilitiesUrl] = "some URL"; + backgroundData.Parameters[BackgroundDataIdentifiers.SelectedCapabilityIdentifier] = "some Identifier"; + backgroundData.Parameters[BackgroundDataIdentifiers.PreferredFormat] = "image/some Format"; backgroundData.IsConfigured = true; // When Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/Views/GrassCoverErosionInwardsFailureMechanismViewTest.cs =================================================================== diff -u -r3629ac885ef54cf9bb8e7f4be48a50e45b0c8eae -rf9db544ad22552799aaaedc2a154abd8765f7099 --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/Views/GrassCoverErosionInwardsFailureMechanismViewTest.cs (.../GrassCoverErosionInwardsFailureMechanismViewTest.cs) (revision 3629ac885ef54cf9bb8e7f4be48a50e45b0c8eae) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/Views/GrassCoverErosionInwardsFailureMechanismViewTest.cs (.../GrassCoverErosionInwardsFailureMechanismViewTest.cs) (revision f9db544ad22552799aaaedc2a154abd8765f7099) @@ -424,9 +424,9 @@ BackgroundData backgroundData = assessmentSection.BackgroundData; backgroundData.Name = "some Name"; - backgroundData.Parameters["SourceCapabilitiesUrl"] = "some URL"; - backgroundData.Parameters["SelectedCapabilityIdentifier"] = "some Identifier"; - backgroundData.Parameters["PreferredFormat"] = "image/some Format"; + backgroundData.Parameters[BackgroundDataIdentifiers.SourceCapabilitiesUrl] = "some URL"; + backgroundData.Parameters[BackgroundDataIdentifiers.SelectedCapabilityIdentifier] = "some Identifier"; + backgroundData.Parameters[BackgroundDataIdentifiers.PreferredFormat] = "image/some Format"; backgroundData.IsConfigured = true; // When Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsFailureMechanismViewTest.cs =================================================================== diff -u -r3629ac885ef54cf9bb8e7f4be48a50e45b0c8eae -rf9db544ad22552799aaaedc2a154abd8765f7099 --- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsFailureMechanismViewTest.cs (.../GrassCoverErosionOutwardsFailureMechanismViewTest.cs) (revision 3629ac885ef54cf9bb8e7f4be48a50e45b0c8eae) +++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsFailureMechanismViewTest.cs (.../GrassCoverErosionOutwardsFailureMechanismViewTest.cs) (revision f9db544ad22552799aaaedc2a154abd8765f7099) @@ -318,9 +318,9 @@ BackgroundData backgroundData = assessmentSection.BackgroundData; backgroundData.Name = "some Name"; - backgroundData.Parameters["SourceCapabilitiesUrl"] = "some URL"; - backgroundData.Parameters["SelectedCapabilityIdentifier"] = "some Identifier"; - backgroundData.Parameters["PreferredFormat"] = "image/some Format"; + backgroundData.Parameters[BackgroundDataIdentifiers.SourceCapabilitiesUrl] = "some URL"; + backgroundData.Parameters[BackgroundDataIdentifiers.SelectedCapabilityIdentifier] = "some Identifier"; + backgroundData.Parameters[BackgroundDataIdentifiers.PreferredFormat] = "image/some Format"; backgroundData.IsConfigured = true; // When Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/Views/HeightStructuresFailureMechanismViewTest.cs =================================================================== diff -u -r3629ac885ef54cf9bb8e7f4be48a50e45b0c8eae -rf9db544ad22552799aaaedc2a154abd8765f7099 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/Views/HeightStructuresFailureMechanismViewTest.cs (.../HeightStructuresFailureMechanismViewTest.cs) (revision 3629ac885ef54cf9bb8e7f4be48a50e45b0c8eae) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/Views/HeightStructuresFailureMechanismViewTest.cs (.../HeightStructuresFailureMechanismViewTest.cs) (revision f9db544ad22552799aaaedc2a154abd8765f7099) @@ -434,9 +434,9 @@ BackgroundData backgroundData = assessmentSection.BackgroundData; backgroundData.Name = "some Name"; - backgroundData.Parameters["SourceCapabilitiesUrl"] = "some URL"; - backgroundData.Parameters["SelectedCapabilityIdentifier"] = "some Identifier"; - backgroundData.Parameters["PreferredFormat"] = "image/some Format"; + backgroundData.Parameters[BackgroundDataIdentifiers.SourceCapabilitiesUrl] = "some URL"; + backgroundData.Parameters[BackgroundDataIdentifiers.SelectedCapabilityIdentifier] = "some Identifier"; + backgroundData.Parameters[BackgroundDataIdentifiers.PreferredFormat] = "image/some Format"; backgroundData.IsConfigured = true; // When Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/BackgroundDataProperties.cs =================================================================== diff -u -r7a4f8ff71ae5f81177fe5ff9cd78fdc7f24c69f4 -rf9db544ad22552799aaaedc2a154abd8765f7099 --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/BackgroundDataProperties.cs (.../BackgroundDataProperties.cs) (revision 7a4f8ff71ae5f81177fe5ff9cd78fdc7f24c69f4) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/BackgroundDataProperties.cs (.../BackgroundDataProperties.cs) (revision f9db544ad22552799aaaedc2a154abd8765f7099) @@ -115,7 +115,7 @@ { get { - return GetBackgroundMapDataParameter(data, nameof(SourceCapabilitiesUrl)); + return GetBackgroundMapDataParameter(data, BackgroundDataIdentifiers.SourceCapabilitiesUrl); } } @@ -127,7 +127,7 @@ { get { - return GetBackgroundMapDataParameter(data, nameof(SelectedCapabilityIdentifier)); + return GetBackgroundMapDataParameter(data, BackgroundDataIdentifiers.SelectedCapabilityIdentifier); } } @@ -139,7 +139,7 @@ { get { - return GetBackgroundMapDataParameter(data, nameof(PreferredFormat)); + return GetBackgroundMapDataParameter(data, BackgroundDataIdentifiers.PreferredFormat); } } Index: Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs =================================================================== diff -u -r0e50500bb017c821970b286992f14b03dca0e69d -rf9db544ad22552799aaaedc2a154abd8765f7099 --- Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs (.../RingtoetsPlugin.cs) (revision 0e50500bb017c821970b286992f14b03dca0e69d) +++ Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs (.../RingtoetsPlugin.cs) (revision f9db544ad22552799aaaedc2a154abd8765f7099) @@ -936,9 +936,9 @@ var selectedWmtsMapData = selectedMapData as WmtsMapData; if (selectedWmtsMapData != null) { - assessmentSection.BackgroundData.Parameters["SourceCapabilitiesUrl"] = selectedWmtsMapData.SourceCapabilitiesUrl; - assessmentSection.BackgroundData.Parameters["SelectedCapabilityIdentifier"] = selectedWmtsMapData.SelectedCapabilityIdentifier; - assessmentSection.BackgroundData.Parameters["PreferredFormat"] = selectedWmtsMapData.PreferredFormat; + assessmentSection.BackgroundData.Parameters[BackgroundDataIdentifiers.SourceCapabilitiesUrl] = selectedWmtsMapData.SourceCapabilitiesUrl; + assessmentSection.BackgroundData.Parameters[BackgroundDataIdentifiers.SelectedCapabilityIdentifier] = selectedWmtsMapData.SelectedCapabilityIdentifier; + assessmentSection.BackgroundData.Parameters[BackgroundDataIdentifiers.PreferredFormat] = selectedWmtsMapData.PreferredFormat; } } Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/BackgroundDataPropertiesTest.cs =================================================================== diff -u -r250899bf76acee45d411a95377d8a021a0977a75 -rf9db544ad22552799aaaedc2a154abd8765f7099 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/BackgroundDataPropertiesTest.cs (.../BackgroundDataPropertiesTest.cs) (revision 250899bf76acee45d411a95377d8a021a0977a75) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/BackgroundDataPropertiesTest.cs (.../BackgroundDataPropertiesTest.cs) (revision f9db544ad22552799aaaedc2a154abd8765f7099) @@ -132,9 +132,9 @@ BackgroundMapDataType = BackgroundMapDataType.Wmts, Parameters = { - { "SourceCapabilitiesUrl", mapData.SourceCapabilitiesUrl }, - { "SelectedCapabilityIdentifier", mapData.SelectedCapabilityIdentifier }, - { "PreferredFormat", mapData.PreferredFormat } + { BackgroundDataIdentifiers.SourceCapabilitiesUrl, mapData.SourceCapabilitiesUrl }, + { BackgroundDataIdentifiers.SelectedCapabilityIdentifier, mapData.SelectedCapabilityIdentifier }, + { BackgroundDataIdentifiers.PreferredFormat, mapData.PreferredFormat } } }; @@ -293,9 +293,9 @@ BackgroundMapDataType = BackgroundMapDataType.Wmts, Parameters = { - { "SourceCapabilitiesUrl", defaultPdokMapData.SourceCapabilitiesUrl }, - { "SelectedCapabilityIdentifier", defaultPdokMapData.SelectedCapabilityIdentifier }, - { "PreferredFormat", defaultPdokMapData.PreferredFormat } + { BackgroundDataIdentifiers.SourceCapabilitiesUrl, defaultPdokMapData.SourceCapabilitiesUrl }, + { BackgroundDataIdentifiers.SelectedCapabilityIdentifier, defaultPdokMapData.SelectedCapabilityIdentifier }, + { BackgroundDataIdentifiers.PreferredFormat, defaultPdokMapData.PreferredFormat } } }; Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/AssessmentSectionViewTest.cs =================================================================== diff -u -r3629ac885ef54cf9bb8e7f4be48a50e45b0c8eae -rf9db544ad22552799aaaedc2a154abd8765f7099 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/AssessmentSectionViewTest.cs (.../AssessmentSectionViewTest.cs) (revision 3629ac885ef54cf9bb8e7f4be48a50e45b0c8eae) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/AssessmentSectionViewTest.cs (.../AssessmentSectionViewTest.cs) (revision f9db544ad22552799aaaedc2a154abd8765f7099) @@ -272,9 +272,9 @@ BackgroundData backgroundData = assessmentSection.BackgroundData; backgroundData.Name = "some Name"; - backgroundData.Parameters["SourceCapabilitiesUrl"] = "some URL"; - backgroundData.Parameters["SelectedCapabilityIdentifier"] = "some Identifier"; - backgroundData.Parameters["PreferredFormat"] = "image/some Format"; + backgroundData.Parameters[BackgroundDataIdentifiers.SourceCapabilitiesUrl] = "some URL"; + backgroundData.Parameters[BackgroundDataIdentifiers.SelectedCapabilityIdentifier] = "some Identifier"; + backgroundData.Parameters[BackgroundDataIdentifiers.PreferredFormat] = "image/some Format"; backgroundData.IsConfigured = true; // When Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/BackgroundDataTreeNodeInfoTest.cs =================================================================== diff -u -r0c0f67f67e9e0928a5dd756914167d1d23615187 -rf9db544ad22552799aaaedc2a154abd8765f7099 --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/BackgroundDataTreeNodeInfoTest.cs (.../BackgroundDataTreeNodeInfoTest.cs) (revision 0c0f67f67e9e0928a5dd756914167d1d23615187) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/BackgroundDataTreeNodeInfoTest.cs (.../BackgroundDataTreeNodeInfoTest.cs) (revision f9db544ad22552799aaaedc2a154abd8765f7099) @@ -387,9 +387,9 @@ assessmentSection.BackgroundData.IsConfigured = mapData.IsConfigured; assessmentSection.BackgroundData.Transparency = mapData.Transparency; assessmentSection.BackgroundData.BackgroundMapDataType = BackgroundMapDataType.Wmts; - assessmentSection.BackgroundData.Parameters["SourceCapabilitiesUrl"] = mapData.SourceCapabilitiesUrl; - assessmentSection.BackgroundData.Parameters["SelectedCapabilityIdentifier"] = mapData.SelectedCapabilityIdentifier; - assessmentSection.BackgroundData.Parameters["PreferredFormat"] = mapData.PreferredFormat; + assessmentSection.BackgroundData.Parameters[BackgroundDataIdentifiers.SourceCapabilitiesUrl] = mapData.SourceCapabilitiesUrl; + assessmentSection.BackgroundData.Parameters[BackgroundDataIdentifiers.SelectedCapabilityIdentifier] = mapData.SelectedCapabilityIdentifier; + assessmentSection.BackgroundData.Parameters[BackgroundDataIdentifiers.PreferredFormat] = mapData.PreferredFormat; DialogBoxHandler = (name, wnd) => { @@ -446,9 +446,9 @@ assessmentSection.BackgroundData.IsConfigured = mapData.IsConfigured; assessmentSection.BackgroundData.Transparency = mapData.Transparency; assessmentSection.BackgroundData.BackgroundMapDataType = BackgroundMapDataType.Wmts; - assessmentSection.BackgroundData.Parameters["SourceCapabilitiesUrl"] = mapData.SourceCapabilitiesUrl; - assessmentSection.BackgroundData.Parameters["SelectedCapabilityIdentifier"] = mapData.SelectedCapabilityIdentifier; - assessmentSection.BackgroundData.Parameters["PreferredFormat"] = mapData.PreferredFormat; + assessmentSection.BackgroundData.Parameters[BackgroundDataIdentifiers.SourceCapabilitiesUrl] = mapData.SourceCapabilitiesUrl; + assessmentSection.BackgroundData.Parameters[BackgroundDataIdentifiers.SelectedCapabilityIdentifier] = mapData.SelectedCapabilityIdentifier; + assessmentSection.BackgroundData.Parameters[BackgroundDataIdentifiers.PreferredFormat] = mapData.PreferredFormat; DialogBoxHandler = (name, wnd) => { @@ -542,9 +542,9 @@ Assert.IsTrue(backgroundData.IsVisible); Assert.AreEqual(mapData.IsConfigured, backgroundData.IsConfigured); Assert.AreEqual(mapData.Transparency, backgroundData.Transparency); - Assert.AreEqual(mapData.SourceCapabilitiesUrl, backgroundData.Parameters["SourceCapabilitiesUrl"]); - Assert.AreEqual(mapData.SelectedCapabilityIdentifier, backgroundData.Parameters["SelectedCapabilityIdentifier"]); - Assert.AreEqual(mapData.PreferredFormat, backgroundData.Parameters["PreferredFormat"]); + Assert.AreEqual(mapData.SourceCapabilitiesUrl, backgroundData.Parameters[BackgroundDataIdentifiers.SourceCapabilitiesUrl]); + Assert.AreEqual(mapData.SelectedCapabilityIdentifier, backgroundData.Parameters[BackgroundDataIdentifiers.SelectedCapabilityIdentifier]); + Assert.AreEqual(mapData.PreferredFormat, backgroundData.Parameters[BackgroundDataIdentifiers.PreferredFormat]); } private static void AssertBackgroundMapDataProperties(BackgroundData expectedBackgroundData, BackgroundData actualBackgroundData) Index: Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/Views/PipingFailureMechanismViewTest.cs =================================================================== diff -u -r3629ac885ef54cf9bb8e7f4be48a50e45b0c8eae -rf9db544ad22552799aaaedc2a154abd8765f7099 --- Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/Views/PipingFailureMechanismViewTest.cs (.../PipingFailureMechanismViewTest.cs) (revision 3629ac885ef54cf9bb8e7f4be48a50e45b0c8eae) +++ Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/Views/PipingFailureMechanismViewTest.cs (.../PipingFailureMechanismViewTest.cs) (revision f9db544ad22552799aaaedc2a154abd8765f7099) @@ -482,9 +482,9 @@ BackgroundData backgroundData = assessmentSection.BackgroundData; backgroundData.Name = "some Name"; - backgroundData.Parameters["SourceCapabilitiesUrl"] = "some URL"; - backgroundData.Parameters["SelectedCapabilityIdentifier"] = "some Identifier"; - backgroundData.Parameters["PreferredFormat"] = "image/some Format"; + backgroundData.Parameters[BackgroundDataIdentifiers.SourceCapabilitiesUrl] = "some URL"; + backgroundData.Parameters[BackgroundDataIdentifiers.SelectedCapabilityIdentifier] = "some Identifier"; + backgroundData.Parameters[BackgroundDataIdentifiers.PreferredFormat] = "image/some Format"; backgroundData.IsConfigured = true; // When Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/Views/StabilityPointStructuresFailureMechanismViewTest.cs =================================================================== diff -u -r3629ac885ef54cf9bb8e7f4be48a50e45b0c8eae -rf9db544ad22552799aaaedc2a154abd8765f7099 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/Views/StabilityPointStructuresFailureMechanismViewTest.cs (.../StabilityPointStructuresFailureMechanismViewTest.cs) (revision 3629ac885ef54cf9bb8e7f4be48a50e45b0c8eae) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/Views/StabilityPointStructuresFailureMechanismViewTest.cs (.../StabilityPointStructuresFailureMechanismViewTest.cs) (revision f9db544ad22552799aaaedc2a154abd8765f7099) @@ -436,9 +436,9 @@ BackgroundData backgroundData = assessmentSection.BackgroundData; backgroundData.Name = "some Name"; - backgroundData.Parameters["SourceCapabilitiesUrl"] = "some URL"; - backgroundData.Parameters["SelectedCapabilityIdentifier"] = "some Identifier"; - backgroundData.Parameters["PreferredFormat"] = "image/some Format"; + backgroundData.Parameters[BackgroundDataIdentifiers.SourceCapabilitiesUrl] = "some URL"; + backgroundData.Parameters[BackgroundDataIdentifiers.SelectedCapabilityIdentifier] = "some Identifier"; + backgroundData.Parameters[BackgroundDataIdentifiers.PreferredFormat] = "image/some Format"; backgroundData.IsConfigured = true; // When Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/Views/StabilityStoneCoverFailureMechanismViewTest.cs =================================================================== diff -u -r3629ac885ef54cf9bb8e7f4be48a50e45b0c8eae -rf9db544ad22552799aaaedc2a154abd8765f7099 --- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/Views/StabilityStoneCoverFailureMechanismViewTest.cs (.../StabilityStoneCoverFailureMechanismViewTest.cs) (revision 3629ac885ef54cf9bb8e7f4be48a50e45b0c8eae) +++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/Views/StabilityStoneCoverFailureMechanismViewTest.cs (.../StabilityStoneCoverFailureMechanismViewTest.cs) (revision f9db544ad22552799aaaedc2a154abd8765f7099) @@ -294,9 +294,9 @@ BackgroundData backgroundData = assessmentSection.BackgroundData; backgroundData.Name = "some Name"; - backgroundData.Parameters["SourceCapabilitiesUrl"] = "some URL"; - backgroundData.Parameters["SelectedCapabilityIdentifier"] = "some Identifier"; - backgroundData.Parameters["PreferredFormat"] = "image/some Format"; + backgroundData.Parameters[BackgroundDataIdentifiers.SourceCapabilitiesUrl] = "some URL"; + backgroundData.Parameters[BackgroundDataIdentifiers.SelectedCapabilityIdentifier] = "some Identifier"; + backgroundData.Parameters[BackgroundDataIdentifiers.PreferredFormat] = "image/some Format"; backgroundData.IsConfigured = true; // When Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/Views/WaveImpactAsphaltCoverFailureMechanismViewTest.cs =================================================================== diff -u -r3629ac885ef54cf9bb8e7f4be48a50e45b0c8eae -rf9db544ad22552799aaaedc2a154abd8765f7099 --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/Views/WaveImpactAsphaltCoverFailureMechanismViewTest.cs (.../WaveImpactAsphaltCoverFailureMechanismViewTest.cs) (revision 3629ac885ef54cf9bb8e7f4be48a50e45b0c8eae) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/Views/WaveImpactAsphaltCoverFailureMechanismViewTest.cs (.../WaveImpactAsphaltCoverFailureMechanismViewTest.cs) (revision f9db544ad22552799aaaedc2a154abd8765f7099) @@ -295,9 +295,9 @@ BackgroundData backgroundData = assessmentSection.BackgroundData; backgroundData.Name = "some Name"; - backgroundData.Parameters["SourceCapabilitiesUrl"] = "some URL"; - backgroundData.Parameters["SelectedCapabilityIdentifier"] = "some Identifier"; - backgroundData.Parameters["PreferredFormat"] = "image/some Format"; + backgroundData.Parameters[BackgroundDataIdentifiers.SourceCapabilitiesUrl] = "some URL"; + backgroundData.Parameters[BackgroundDataIdentifiers.SelectedCapabilityIdentifier] = "some Identifier"; + backgroundData.Parameters[BackgroundDataIdentifiers.PreferredFormat] = "image/some Format"; backgroundData.IsConfigured = true; // When