Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/IntegrationTests/StorageSqLiteIntegrationTest.cs =================================================================== diff -u -r1e140910f628bbdc80416205a9dd8ac0f9dd7221 -r7f540fc512a6c291d69612b1d0b9241d42288aef --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/IntegrationTests/StorageSqLiteIntegrationTest.cs (.../StorageSqLiteIntegrationTest.cs) (revision 1e140910f628bbdc80416205a9dd8ac0f9dd7221) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/IntegrationTests/StorageSqLiteIntegrationTest.cs (.../StorageSqLiteIntegrationTest.cs) (revision 7f540fc512a6c291d69612b1d0b9241d42288aef) @@ -911,16 +911,30 @@ } } - #region BackgroundMapDataContainer + #region BackgroundData private static void AssertBackgroundData(BackgroundData expectedBackgroundData, BackgroundData actualBackgroundData) { Assert.AreEqual(expectedBackgroundData.Name, actualBackgroundData.Name); Assert.AreEqual(expectedBackgroundData.IsVisible, actualBackgroundData.IsVisible); Assert.AreEqual(expectedBackgroundData.Transparency, actualBackgroundData.Transparency); - Assert.AreEqual(expectedBackgroundData.IsConfigured, actualBackgroundData.IsConfigured); - Assert.AreEqual(expectedBackgroundData.BackgroundMapDataType, actualBackgroundData.BackgroundMapDataType); - CollectionAssert.AreEquivalent(expectedBackgroundData.Parameters, actualBackgroundData.Parameters); + + var wmtsBackgroundDataConfiguration = expectedBackgroundData.Configuration as WmtsBackgroundDataConfiguration; + if (wmtsBackgroundDataConfiguration != null) + { + var actualWmtsBackgroundDataConfiguration = (WmtsBackgroundDataConfiguration)actualBackgroundData.Configuration; + Assert.AreEqual(wmtsBackgroundDataConfiguration.IsConfigured, actualWmtsBackgroundDataConfiguration.IsConfigured); + Assert.AreEqual(wmtsBackgroundDataConfiguration.SourceCapabilitiesUrl, actualWmtsBackgroundDataConfiguration.SourceCapabilitiesUrl); + Assert.AreEqual(wmtsBackgroundDataConfiguration.SelectedCapabilityIdentifier, actualWmtsBackgroundDataConfiguration.SelectedCapabilityIdentifier); + Assert.AreEqual(wmtsBackgroundDataConfiguration.PreferredFormat, actualWmtsBackgroundDataConfiguration.PreferredFormat); + } + + var wellKnownBackgroundDataConfiguration = expectedBackgroundData.Configuration as WellKnownBackgroundDataConfiguration; + if (wellKnownBackgroundDataConfiguration != null) + { + var actualWellKnownBackgroundDataConfiguration = (WellKnownBackgroundDataConfiguration)actualBackgroundData.Configuration; + Assert.AreEqual(wellKnownBackgroundDataConfiguration.WellKnownTileSource, actualWellKnownBackgroundDataConfiguration.WellKnownTileSource); + } } #endregion