Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Create/BackgroundDataCreateExtensions.cs =================================================================== diff -u -r40793165416093e9d2fefb6b12acf82fbd8a84c2 -r5a5fe803bd7b9feef47a3ff1b0dac3fa42309aca --- Application/Ringtoets/src/Application.Ringtoets.Storage/Create/BackgroundDataCreateExtensions.cs (.../BackgroundDataCreateExtensions.cs) (revision 40793165416093e9d2fefb6b12acf82fbd8a84c2) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Create/BackgroundDataCreateExtensions.cs (.../BackgroundDataCreateExtensions.cs) (revision 5a5fe803bd7b9feef47a3ff1b0dac3fa42309aca) @@ -59,7 +59,8 @@ { Name = backgroundData.Name.DeepClone(), IsVisible = Convert.ToByte(backgroundData.IsVisible), - Transparency = backgroundData.Transparency + Transparency = backgroundData.Transparency, + BackgroundDataType = Convert.ToByte(backgroundData.BackgroundMapDataType) }; if (backgroundData.IsConfigured) Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/BackgroundDataEntityReadExtensions.cs =================================================================== diff -u -r1c9b0e9cabaad22335799a442889c63bfc651e59 -r5a5fe803bd7b9feef47a3ff1b0dac3fa42309aca --- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/BackgroundDataEntityReadExtensions.cs (.../BackgroundDataEntityReadExtensions.cs) (revision 1c9b0e9cabaad22335799a442889c63bfc651e59) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/BackgroundDataEntityReadExtensions.cs (.../BackgroundDataEntityReadExtensions.cs) (revision 5a5fe803bd7b9feef47a3ff1b0dac3fa42309aca) @@ -54,7 +54,8 @@ IsVisible = Convert.ToBoolean(entity.IsVisible), Transparency = (RoundedDouble) entity.Transparency, Name = entity.Name, - IsConfigured = Convert.ToBoolean(entity.IsConfigured) + IsConfigured = Convert.ToBoolean(entity.IsConfigured), + BackgroundMapDataType = (BackgroundMapDataType) entity.BackgroundDataType }; if (backgroundData.IsConfigured) Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/BackgroundDataCreateExtensionsTest.cs =================================================================== diff -u -r40793165416093e9d2fefb6b12acf82fbd8a84c2 -r5a5fe803bd7b9feef47a3ff1b0dac3fa42309aca --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/BackgroundDataCreateExtensionsTest.cs (.../BackgroundDataCreateExtensionsTest.cs) (revision 40793165416093e9d2fefb6b12acf82fbd8a84c2) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/BackgroundDataCreateExtensionsTest.cs (.../BackgroundDataCreateExtensionsTest.cs) (revision 5a5fe803bd7b9feef47a3ff1b0dac3fa42309aca) @@ -46,7 +46,6 @@ Assert.AreEqual("backgroundData", exception.ParamName); } - [Test] [TestCase(true)] [TestCase(false)] @@ -58,7 +57,8 @@ const string selectedCapabilityName = "selectedName"; const string preferredFormat = "image/png"; const bool isVisible = true; - RoundedDouble transparancy = (RoundedDouble)0.3; + const BackgroundMapDataType backgroundDataType = BackgroundMapDataType.Wmts; + RoundedDouble transparancy = (RoundedDouble) 0.3; var backgroundData = new BackgroundData { @@ -72,7 +72,7 @@ { BackgroundDataIdentifiers.SelectedCapabilityIdentifier, selectedCapabilityName }, { BackgroundDataIdentifiers.PreferredFormat, preferredFormat } }, - BackgroundMapDataType = BackgroundMapDataType.Wmts + BackgroundMapDataType = backgroundDataType }; // Call @@ -82,6 +82,7 @@ Assert.AreEqual(name, entity.Name); Assert.AreEqual(Convert.ToByte(isVisible), entity.IsVisible); Assert.AreEqual(transparancy, entity.Transparency); + Assert.AreEqual(Convert.ToByte(backgroundDataType), entity.BackgroundDataType); if (isConfigured) { Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/BackgroundDataEntityReadExtensionsTest.cs =================================================================== diff -u -r1c9b0e9cabaad22335799a442889c63bfc651e59 -r5a5fe803bd7b9feef47a3ff1b0dac3fa42309aca --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/BackgroundDataEntityReadExtensionsTest.cs (.../BackgroundDataEntityReadExtensionsTest.cs) (revision 1c9b0e9cabaad22335799a442889c63bfc651e59) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/BackgroundDataEntityReadExtensionsTest.cs (.../BackgroundDataEntityReadExtensionsTest.cs) (revision 5a5fe803bd7b9feef47a3ff1b0dac3fa42309aca) @@ -56,6 +56,7 @@ const bool isVisible = false; const double transparancy = 0.4; const bool isConfigured = true; + const BackgroundMapDataType backgroundMapDataType = BackgroundMapDataType.Wmts; var entity = new BackgroundDataEntity { @@ -80,7 +81,8 @@ }, IsVisible = Convert.ToByte(isVisible), Transparency = transparancy, - IsConfigured = Convert.ToByte(isConfigured) + IsConfigured = Convert.ToByte(isConfigured), + BackgroundDataType = Convert.ToByte(backgroundMapDataType) }; // Call @@ -95,6 +97,7 @@ Assert.AreEqual(capabilityName, backgroundData.Parameters[BackgroundDataIdentifiers.SelectedCapabilityIdentifier]); Assert.AreEqual(preferredFormat, backgroundData.Parameters[BackgroundDataIdentifiers.PreferredFormat]); Assert.AreEqual(isConfigured, backgroundData.IsConfigured); + Assert.AreEqual(backgroundMapDataType, backgroundData.BackgroundMapDataType); } [Test]