Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Views/RingtoetsBackgroundMapDataFactory.cs
===================================================================
diff -u -rb519fc798c63691f04bb8008b562a94ed9232d51 -r7a4f8ff71ae5f81177fe5ff9cd78fdc7f24c69f4
--- Ringtoets/Common/src/Ringtoets.Common.Forms/Views/RingtoetsBackgroundMapDataFactory.cs (.../RingtoetsBackgroundMapDataFactory.cs) (revision b519fc798c63691f04bb8008b562a94ed9232d51)
+++ Ringtoets/Common/src/Ringtoets.Common.Forms/Views/RingtoetsBackgroundMapDataFactory.cs (.../RingtoetsBackgroundMapDataFactory.cs) (revision 7a4f8ff71ae5f81177fe5ff9cd78fdc7f24c69f4)
@@ -31,23 +31,23 @@
public static class RingtoetsBackgroundMapDataFactory
{
///
- /// Creates from a .
+ /// Creates from a .
///
- /// The to create
+ /// The to create
/// the for.
/// The created .
- /// Thrown when
+ /// Thrown when
/// is null.
- public static WmtsMapData CreateBackgroundMapData(BackgroundMapData backgroundMapData)
+ public static WmtsMapData CreateBackgroundMapData(BackgroundData backgroundData)
{
- if (backgroundMapData == null)
+ if (backgroundData == null)
{
- throw new ArgumentNullException(nameof(backgroundMapData));
+ throw new ArgumentNullException(nameof(backgroundData));
}
- if (backgroundMapData.BackgroundMapDataType == BackgroundMapDataType.Wmts)
+ if (backgroundData.BackgroundMapDataType == BackgroundMapDataType.Wmts)
{
- return CreateWmtsBackgroundMapData(backgroundMapData);
+ return CreateWmtsBackgroundMapData(backgroundData);
}
return null;
@@ -57,24 +57,24 @@
/// Updates an existing .
///
/// The to update.
- /// The used
+ /// The used
/// to update the map data.
/// The updated .
/// Thrown when any parameter is null.
- public static void UpdateBackgroundMapData(WmtsMapData mapData, BackgroundMapData backgroundMapData)
+ public static void UpdateBackgroundMapData(WmtsMapData mapData, BackgroundData backgroundData)
{
if (mapData == null)
{
throw new ArgumentNullException(nameof(mapData));
}
- if (backgroundMapData == null)
+ if (backgroundData == null)
{
- throw new ArgumentNullException(nameof(backgroundMapData));
+ throw new ArgumentNullException(nameof(backgroundData));
}
- if (backgroundMapData.BackgroundMapDataType == BackgroundMapDataType.Wmts)
+ if (backgroundData.BackgroundMapDataType == BackgroundMapDataType.Wmts)
{
- WmtsMapData newMapData = CreateWmtsBackgroundMapData(backgroundMapData);
+ WmtsMapData newMapData = CreateWmtsBackgroundMapData(backgroundData);
if (newMapData.IsConfigured)
{
@@ -93,7 +93,7 @@
}
}
- private static WmtsMapData CreateWmtsBackgroundMapData(BackgroundMapData backgroundData)
+ private static WmtsMapData CreateWmtsBackgroundMapData(BackgroundData backgroundData)
{
WmtsMapData mapData = WmtsMapData.CreateUnconnectedMapData();
mapData.Name = backgroundData.Name;