Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/BackgroundDataTreeNodeInfoTest.cs =================================================================== diff -u -r32e66ad63b1d2ddd01a6fb7a9fe55c75a7cd276d -r926cb56fb2c8e6cb31723b1d6da8280567fde0e0 --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/BackgroundDataTreeNodeInfoTest.cs (.../BackgroundDataTreeNodeInfoTest.cs) (revision 32e66ad63b1d2ddd01a6fb7a9fe55c75a7cd276d) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/BackgroundDataTreeNodeInfoTest.cs (.../BackgroundDataTreeNodeInfoTest.cs) (revision 926cb56fb2c8e6cb31723b1d6da8280567fde0e0) @@ -383,6 +383,11 @@ var assessmentSection = new ObservableTestAssessmentSectionStub(); + using (new UseCustomSettingsHelper(new TestSettingsHelper + { + ApplicationLocalUserSettingsDirectory = TestHelper.GetTestDataPath(TestDataPath.Core.Components.Gis.IO, "noConfig") + })) + using (new UseCustomTileSourceFactoryConfig(newMapData)) using (var treeViewControl = new TreeViewControl()) using (var plugin = new RingtoetsPlugin()) { @@ -449,6 +454,10 @@ var newMapData = new WellKnownTileSourceMapData(WellKnownTileSource.BingAerial); var newBackgroundData = BackgroundDataTestDataGenerator.GetWellKnownBackgroundMapData(); + using (new UseCustomSettingsHelper(new TestSettingsHelper + { + ApplicationLocalUserSettingsDirectory = TestHelper.GetTestDataPath(TestDataPath.Core.Components.Gis.IO, "noConfig") + })) using (var treeViewControl = new TreeViewControl()) using (var plugin = new RingtoetsPlugin()) { @@ -513,8 +522,15 @@ WmtsMapData mapData = WmtsMapData.CreateUnconnectedMapData(); BackgroundData backgroundData = BackgroundDataTestDataGenerator.GetWmtsBackgroundMapData(mapData); - BackgroundData newBackgroundData = BackgroundDataTestDataGenerator.GetWmtsBackgroundMapData(WmtsMapData.CreateDefaultPdokMapData()); + WmtsMapData newMapData = WmtsMapData.CreateDefaultPdokMapData(); + BackgroundData newBackgroundData = BackgroundDataTestDataGenerator.GetWmtsBackgroundMapData(newMapData); + + using (new UseCustomSettingsHelper(new TestSettingsHelper + { + ApplicationLocalUserSettingsDirectory = TestHelper.GetTestDataPath(TestDataPath.Core.Components.Gis.IO, "noConfig") + })) + using (new UseCustomTileSourceFactoryConfig(newMapData)) using (var treeViewControl = new TreeViewControl()) using (var plugin = new RingtoetsPlugin()) { @@ -586,8 +602,8 @@ Assert.IsTrue(backgroundData.IsVisible); Assert.AreEqual(mapData.IsConfigured, backgroundData.IsConfigured); Assert.AreEqual(mapData.Transparency, backgroundData.Transparency); - - Assert.AreEqual(((int)mapData.TileSource).ToString(), backgroundData.Parameters[BackgroundDataIdentifiers.WellKnownTileSource]); + + Assert.AreEqual(((int) mapData.TileSource).ToString(), backgroundData.Parameters[BackgroundDataIdentifiers.WellKnownTileSource]); } private static void AssertBackgroundMapDataProperties(BackgroundData expectedBackgroundData, BackgroundData actualBackgroundData)