Index: Core/Components/src/Core.Components.Gis.Forms/Views/WmtsLocationControl.cs =================================================================== diff -u -r1b9445050ddc7786014349d7014c7c4d85242a5d -r773c8bead12417f353dc62c006f93fee5a68d06e --- Core/Components/src/Core.Components.Gis.Forms/Views/WmtsLocationControl.cs (.../WmtsLocationControl.cs) (revision 1b9445050ddc7786014349d7014c7c4d85242a5d) +++ Core/Components/src/Core.Components.Gis.Forms/Views/WmtsLocationControl.cs (.../WmtsLocationControl.cs) (revision 773c8bead12417f353dc62c006f93fee5a68d06e) @@ -21,6 +21,7 @@ using System; using System.Collections.Generic; +using System.Collections.ObjectModel; using System.IO; using System.Linq; using System.Windows.Forms; @@ -179,9 +180,14 @@ private IEnumerable GetSavedWmtsConnectionInfos() { + var reader = new WmtsConnectionInfoReader(); + if (!File.Exists(wmtsConnectionInfoFilePath)) + { + return reader.ReadDefaultWmtsConnectionInfos(); + } + try { - var reader = new WmtsConnectionInfoReader(); return reader.ReadWmtsConnectionInfos(wmtsConnectionInfoFilePath); } catch (CriticalFileReadException exception) Index: Core/Components/src/Core.Components.Gis.IO/Core.Components.Gis.IO.csproj =================================================================== diff -u -r99f9004206bfb9de084275d749b7aeccafd6da18 -r773c8bead12417f353dc62c006f93fee5a68d06e --- Core/Components/src/Core.Components.Gis.IO/Core.Components.Gis.IO.csproj (.../Core.Components.Gis.IO.csproj) (revision 99f9004206bfb9de084275d749b7aeccafd6da18) +++ Core/Components/src/Core.Components.Gis.IO/Core.Components.Gis.IO.csproj (.../Core.Components.Gis.IO.csproj) (revision 773c8bead12417f353dc62c006f93fee5a68d06e) @@ -101,6 +101,7 @@ Copying.Lesser.licenseheader + Index: Core/Components/src/Core.Components.Gis.IO/Properties/Resources.Designer.cs =================================================================== diff -u -r99f9004206bfb9de084275d749b7aeccafd6da18 -r773c8bead12417f353dc62c006f93fee5a68d06e --- Core/Components/src/Core.Components.Gis.IO/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 99f9004206bfb9de084275d749b7aeccafd6da18) +++ Core/Components/src/Core.Components.Gis.IO/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 773c8bead12417f353dc62c006f93fee5a68d06e) @@ -82,6 +82,28 @@ } /// + /// Looks up a localized string similar to <?xml version="1.0" encoding="utf-8"?> + /// + ///<!-- + ///Copyright (C) Stichting Deltares 2016. All rights reserved. + /// + ///This file is part of Ringtoets. + /// + ///Ringtoets is free software: you can redistribute it and/or modify + ///it under the terms of the GNU Lesser General Public License as published by + ///the Free Software Foundation, either version 3 of the License, or + ///(at your option) any later version. + /// + ///This program is distributed in the hope that it will be useful, + ///but WITHOUT ANY WARRANTY; without even the implied [rest of string was truncated]";. + /// + internal static string defaultWmtsConnectionInfo { + get { + return ResourceManager.GetString("defaultWmtsConnectionInfo", resourceCulture); + } + } + + /// /// Looks up a localized string similar to {0} ///Er is geen kaartlaag geïmporteerd.. /// Index: Core/Components/src/Core.Components.Gis.IO/Properties/Resources.resx =================================================================== diff -u -r99f9004206bfb9de084275d749b7aeccafd6da18 -r773c8bead12417f353dc62c006f93fee5a68d06e --- Core/Components/src/Core.Components.Gis.IO/Properties/Resources.resx (.../Resources.resx) (revision 99f9004206bfb9de084275d749b7aeccafd6da18) +++ Core/Components/src/Core.Components.Gis.IO/Properties/Resources.resx (.../Resources.resx) (revision 773c8bead12417f353dc62c006f93fee5a68d06e) @@ -163,4 +163,8 @@ Het is niet mogelijk om WMTS connectie '{0}' aan te maken met URL '{1}'. + + + ..\Resources\defaultwmtsconnectioninfo.config;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 + \ No newline at end of file Index: Core/Components/src/Core.Components.Gis.IO/Readers/WmtsConnectionInfoReader.cs =================================================================== diff -u -r1b9445050ddc7786014349d7014c7c4d85242a5d -r773c8bead12417f353dc62c006f93fee5a68d06e --- Core/Components/src/Core.Components.Gis.IO/Readers/WmtsConnectionInfoReader.cs (.../WmtsConnectionInfoReader.cs) (revision 1b9445050ddc7786014349d7014c7c4d85242a5d) +++ Core/Components/src/Core.Components.Gis.IO/Readers/WmtsConnectionInfoReader.cs (.../WmtsConnectionInfoReader.cs) (revision 773c8bead12417f353dc62c006f93fee5a68d06e) @@ -27,7 +27,6 @@ using System.Xml; using System.Xml.Linq; using Core.Common.Base.IO; -using Core.Common.IO.Exceptions; using Core.Common.Utils; using Core.Common.Utils.Builders; using Core.Components.Gis.IO.Properties; @@ -73,7 +72,9 @@ { readConnectionInfos = ReadWmtsConnectionInfos().ToArray(); } - catch (Exception exception) when (exception is XmlException || exception is IOException) + catch (Exception exception) when (exception is XmlException + || exception is InvalidOperationException + || exception is IOException) { string message = new FileReaderErrorMessageBuilder(filePath) .Build(CoreCommonUtilsResources.Error_General_IO_Import_ErrorMessage); @@ -83,24 +84,54 @@ } /// + /// Reads the default WMTS Connection info objects. + /// + /// The read information. + /// Thrown when an error occurred while parsing the XML. + /// Thrown when an error occurred while reading the XML. + public ReadOnlyCollection ReadDefaultWmtsConnectionInfos() + { + using (XmlReader reader = XmlReader.Create(new StringReader(Resources.defaultWmtsConnectionInfo))) + { + IList connectionInfos = ReadWmtsConnectionInfos(reader).ToList(); + return new ReadOnlyCollection(connectionInfos); + } + } + + /// /// Reads the collection of from . /// /// The read collection. /// Thrown when an error occurred while parsing the XML. private IEnumerable ReadWmtsConnectionInfos() { - var connectionInfos = new List(); using (XmlReader reader = XmlReader.Create(filePath)) { - while (reader.Read()) + return ReadWmtsConnectionInfos(reader); + } + } + + /// + /// Reads the objects from the . + /// + /// The reader to use. + /// The read WMTS connection infos. + /// Thrown when an error occurred while parsing the XML. + /// Thrown when an error occurred while reading the XML. + private IEnumerable ReadWmtsConnectionInfos(XmlReader reader) + { + var connectionInfos = new List(); + while (reader.Read()) + { + if (IsReadElementWmtsConnectionElement(reader)) { - if (IsReadElementWmtsConnectionElement(reader)) { continue;} + continue; + } - WmtsConnectionInfo readWmtsConnectionElement = ReadWmtsConnectionElement(reader); - if (readWmtsConnectionElement != null) - { - connectionInfos.Add(readWmtsConnectionElement); - } + WmtsConnectionInfo readWmtsConnectionElement = ReadWmtsConnectionElement(reader); + if (readWmtsConnectionElement != null) + { + connectionInfos.Add(readWmtsConnectionElement); } } return connectionInfos; @@ -119,6 +150,13 @@ || reader.Name != WmtsConnectionInfoXmlDefinitions.WmtsConnectionElement; } + /// + /// Reads a single from . + /// + /// The reader to use. + /// The read or null if none read. + /// Thrown when the + /// is not positioned on an element when this method is called. private WmtsConnectionInfo ReadWmtsConnectionElement(XmlReader reader) { using (XmlReader subtreeReader = reader.ReadSubtree()) Index: Core/Components/src/Core.Components.Gis.IO/Resources/defaultwmtsconnectioninfo.config =================================================================== diff -u --- Core/Components/src/Core.Components.Gis.IO/Resources/defaultwmtsconnectioninfo.config (revision 0) +++ Core/Components/src/Core.Components.Gis.IO/Resources/defaultwmtsconnectioninfo.config (revision 773c8bead12417f353dc62c006f93fee5a68d06e) @@ -0,0 +1,34 @@ + + + + + + ESRI luchtfoto + http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/WMTS? + + + PDOK + https://geodata.nationaalgeoregister.nl/tiles/service/wmts/ahn2?request=GetCapabilities + + \ No newline at end of file Index: Core/Components/test/Core.Components.Gis.Forms.Test/Views/WmtsLocationControlTest.cs =================================================================== diff -u -rd456c82f443df185385057567197ced5d6684ebc -r773c8bead12417f353dc62c006f93fee5a68d06e --- Core/Components/test/Core.Components.Gis.Forms.Test/Views/WmtsLocationControlTest.cs (.../WmtsLocationControlTest.cs) (revision d456c82f443df185385057567197ced5d6684ebc) +++ Core/Components/test/Core.Components.Gis.Forms.Test/Views/WmtsLocationControlTest.cs (.../WmtsLocationControlTest.cs) (revision 773c8bead12417f353dc62c006f93fee5a68d06e) @@ -90,6 +90,7 @@ public void Constructor_ActiveWmtsMapDataNull_DefaultValues() { // Setup + wmtsCapabilityFactory.Expect(GetWmtsCapabilitiesFromDefaultWmtsCapabilityUrl).Return(Enumerable.Empty()); mockRepository.ReplayAll(); using (new UseCustomTileSourceFactoryConfig(tileFactory)) @@ -134,6 +135,7 @@ public void Show_AddedToForm_DefaultProperties() { // Setup + wmtsCapabilityFactory.Expect(GetWmtsCapabilitiesFromDefaultWmtsCapabilityUrl).Return(Enumerable.Empty()); mockRepository.ReplayAll(); using (new UseCustomTileSourceFactoryConfig(tileFactory)) @@ -153,11 +155,11 @@ Assert.AreEqual("Name", urlLocations.DisplayMember); Assert.AreEqual("Url", urlLocations.ValueMember); Assert.IsTrue(urlLocations.Sorted); - Assert.IsNull(urlLocations.SelectedItem); + Assert.IsNotNull(urlLocations.SelectedItem); var buttonConnectTo = (Button) new ButtonTester("connectToButton", form).TheObject; Assert.AreEqual("Verbinding maken", buttonConnectTo.Text); - Assert.IsFalse(buttonConnectTo.Enabled); + Assert.IsTrue(buttonConnectTo.Enabled); var buttonAddLocation = new ButtonTester("addLocationButton", form); Assert.AreEqual("Locatie toevoegen...", buttonAddLocation.Text); @@ -212,6 +214,7 @@ public void Constructor_NullMapData_DataGridViewCorrectlyInitialized() { // Setup + wmtsCapabilityFactory.Expect(GetWmtsCapabilitiesFromDefaultWmtsCapabilityUrl).Return(Enumerable.Empty()); mockRepository.ReplayAll(); using (new UseCustomTileSourceFactoryConfig(tileFactory)) @@ -314,6 +317,7 @@ public void Dispose_AlreadyDisposed_DoesNotThrowException() { // Setup + wmtsCapabilityFactory.Expect(GetWmtsCapabilitiesFromDefaultWmtsCapabilityUrl).Return(Enumerable.Empty()); mockRepository.ReplayAll(); using (new UseCustomTileSourceFactoryConfig(tileFactory)) @@ -378,6 +382,7 @@ public void GetSelectedMapData_WithoutSelectedData_ReturnsNull() { // Setup + wmtsCapabilityFactory.Expect(GetWmtsCapabilitiesFromDefaultWmtsCapabilityUrl).Return(Enumerable.Empty()); mockRepository.ReplayAll(); using (new UseCustomTileSourceFactoryConfig(tileFactory)) @@ -598,6 +603,7 @@ public void GivenWmtsLocationControlAndAddLocationClicked_WhenDialogCanceled_ThenWmtsLocationsNotUpdated() { // Given + wmtsCapabilityFactory.Expect(GetWmtsCapabilitiesFromDefaultWmtsCapabilityUrl).Return(Enumerable.Empty()); mockRepository.ReplayAll(); DialogBoxHandler = (formName, wnd) => @@ -624,7 +630,7 @@ // Then var comboBox = (ComboBox) new ComboBoxTester("urlLocationComboBox", form).TheObject; var dataSource = (IList) comboBox.DataSource; - Assert.AreEqual(0, dataSource.Count); + Assert.AreEqual(2, dataSource.Count); } } @@ -691,6 +697,7 @@ public void GivenWmtsLocationControlAndAddLocationClicked_WhenInValidDataInDialog_ThenWmtsLocationsNotUpdated() { // Given + wmtsCapabilityFactory.Expect(GetWmtsCapabilitiesFromDefaultWmtsCapabilityUrl).Return(Enumerable.Empty()); mockRepository.ReplayAll(); DialogBoxHandler = (formName, wnd) => @@ -725,10 +732,10 @@ // Then var comboBox = (ComboBox) new ComboBoxTester("urlLocationComboBox", form).TheObject; var dataSource = (IList) comboBox.DataSource; - Assert.AreEqual(0, dataSource.Count); + Assert.AreEqual(2, dataSource.Count); var connectToButton = (Button) new ButtonTester("connectToButton", form).TheObject; - Assert.IsFalse(connectToButton.Enabled); + Assert.IsTrue(connectToButton.Enabled); } } @@ -913,11 +920,12 @@ // Given WmtsMapData backgroundMapData = WmtsMapData.CreateDefaultPdokMapData(); + wmtsCapabilityFactory.Expect(GetWmtsCapabilitiesFromDefaultWmtsCapabilityUrl).Return(Enumerable.Empty()); wmtsCapabilityFactory.Expect(wcf => wcf.GetWmtsCapabilities(backgroundMapData.SourceCapabilitiesUrl)) .Return(new[] { CreateWmtsCapability(new TestWmtsTileSource(backgroundMapData)) - }).Repeat.Twice(); + }); mockRepository.ReplayAll(); using (new UseCustomTileSourceFactoryConfig(backgroundMapData)) @@ -982,6 +990,7 @@ public void Dispose_DisposedAlreadyCalled_DoesNotThrowException() { // Setup + wmtsCapabilityFactory.Expect(GetWmtsCapabilitiesFromDefaultWmtsCapabilityUrl).Return(Enumerable.Empty()); mockRepository.ReplayAll(); using (new UseCustomTileSourceFactoryConfig(tileFactory)) @@ -1000,6 +1009,11 @@ } } + private static IEnumerable GetWmtsCapabilitiesFromDefaultWmtsCapabilityUrl(IWmtsCapabilityFactory wcf) + { + return wcf.GetWmtsCapabilities("http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/WMTS?"); + } + private static WmtsCapability CreateWmtsCapability(ITileSource tileSource) { var wmtsTileSchema = (WmtsTileSchema) tileSource.Schema; Index: Core/Components/test/Core.Components.Gis.IO.Test/Readers/WmtsConnectionInfoReaderTest.cs =================================================================== diff -u -r1b9445050ddc7786014349d7014c7c4d85242a5d -r773c8bead12417f353dc62c006f93fee5a68d06e --- Core/Components/test/Core.Components.Gis.IO.Test/Readers/WmtsConnectionInfoReaderTest.cs (.../WmtsConnectionInfoReaderTest.cs) (revision 1b9445050ddc7786014349d7014c7c4d85242a5d) +++ Core/Components/test/Core.Components.Gis.IO.Test/Readers/WmtsConnectionInfoReaderTest.cs (.../WmtsConnectionInfoReaderTest.cs) (revision 773c8bead12417f353dc62c006f93fee5a68d06e) @@ -21,11 +21,11 @@ using System; using System.Collections.Generic; +using System.Collections.ObjectModel; using System.IO; using System.Linq; using System.Xml; using Core.Common.Base.IO; -using Core.Common.IO.Exceptions; using Core.Common.TestUtil; using Core.Components.Gis.IO.Readers; using NUnit.Framework; @@ -253,6 +253,24 @@ } } + [Test] + public void ReadDefaultWmtsConnectionInfos_Always_ReturnsExpectedWmtsConnectionInfos() + { + // Setup + var reader = new WmtsConnectionInfoReader(); + + // Call + ReadOnlyCollection readConnectionInfos = reader.ReadDefaultWmtsConnectionInfos(); + + // Assert + Assert.AreEqual(2, readConnectionInfos.Count); + var firstExpected = new WmtsConnectionInfo(@"ESRI luchtfoto", @"http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/WMTS?"); + var secondExpected = new WmtsConnectionInfo(@"PDOK", @"https://geodata.nationaalgeoregister.nl/tiles/service/wmts/ahn2?request=GetCapabilities"); + + AssertAreEqual(firstExpected, readConnectionInfos[0]); + AssertAreEqual(secondExpected, readConnectionInfos[1]); + } + private static void AssertAreEqual(WmtsConnectionInfo expected, WmtsConnectionInfo actual) { Assert.AreEqual(expected.Name, actual.Name); Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/BackgroundMapDataSelectionDialogTest.cs =================================================================== diff -u -r32e66ad63b1d2ddd01a6fb7a9fe55c75a7cd276d -r773c8bead12417f353dc62c006f93fee5a68d06e --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/BackgroundMapDataSelectionDialogTest.cs (.../BackgroundMapDataSelectionDialogTest.cs) (revision 32e66ad63b1d2ddd01a6fb7a9fe55c75a7cd276d) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/BackgroundMapDataSelectionDialogTest.cs (.../BackgroundMapDataSelectionDialogTest.cs) (revision 773c8bead12417f353dc62c006f93fee5a68d06e) @@ -46,6 +46,7 @@ { private MockRepository mockRepository; private ITileSourceFactory tileFactory; + private static readonly TestDataPath testPath = TestDataPath.Ringtoets.Integration.Forms; [SetUp] public void SetUp() @@ -68,19 +69,25 @@ var dialogParent = mockRepository.Stub(); mockRepository.ReplayAll(); - // Call - using (var dialog = new BackgroundMapDataSelectionDialog(dialogParent, null)) + using (new UseCustomSettingsHelper(new TestSettingsHelper { - // Assert - Assert.IsInstanceOf(dialog); - Assert.AreEqual("Selecteer achtergrondkaart", dialog.Text); + ApplicationLocalUserSettingsDirectory = TestHelper.GetTestDataPath(testPath, "EmptyWmtsConnectionInfo") + })) + { + // Call + using (var dialog = new BackgroundMapDataSelectionDialog(dialogParent, null)) + { + // Assert + Assert.IsInstanceOf(dialog); + Assert.AreEqual("Selecteer achtergrondkaart", dialog.Text); - Icon icon = BitmapToIcon(RingtoetsCommonFormsResources.SelectionDialogIcon); - Bitmap expectedImage = icon.ToBitmap(); - Bitmap actualImage = dialog.Icon.ToBitmap(); - TestHelper.AssertImagesAreEqual(expectedImage, actualImage); + Icon icon = BitmapToIcon(RingtoetsCommonFormsResources.SelectionDialogIcon); + Bitmap expectedImage = icon.ToBitmap(); + Bitmap actualImage = dialog.Icon.ToBitmap(); + TestHelper.AssertImagesAreEqual(expectedImage, actualImage); - AssertMapDataControls(dialog); + AssertMapDataControls(dialog); + } } } @@ -129,6 +136,10 @@ var random = new Random(124); var mapData = new WellKnownTileSourceMapData(random.NextEnumValue()); + using (new UseCustomSettingsHelper(new TestSettingsHelper + { + ApplicationLocalUserSettingsDirectory = TestHelper.GetTestDataPath(testPath, "EmptyWmtsConnectionInfo") + })) using (new UseCustomTileSourceFactoryConfig(tileFactory)) { // Call @@ -147,6 +158,10 @@ // Setup mockRepository.ReplayAll(); + using (new UseCustomSettingsHelper(new TestSettingsHelper + { + ApplicationLocalUserSettingsDirectory = TestHelper.GetTestDataPath(testPath, "EmptyWmtsConnectionInfo") + })) using (var dialogParent = new Form()) using (var dialog = new BackgroundMapDataSelectionDialog(dialogParent, null)) { @@ -193,6 +208,10 @@ } }; + using (new UseCustomSettingsHelper(new TestSettingsHelper + { + ApplicationLocalUserSettingsDirectory = TestHelper.GetTestDataPath(testPath, "EmptyWmtsConnectionInfo") + })) using (var dialogParent = new Form()) using (var dialog = new BackgroundMapDataSelectionDialog(dialogParent, null)) { @@ -222,6 +241,10 @@ } }; + using (new UseCustomSettingsHelper(new TestSettingsHelper + { + ApplicationLocalUserSettingsDirectory = TestHelper.GetTestDataPath(testPath, "EmptyWmtsConnectionInfo") + })) using (var dialogParent = new Form()) using (var dialog = new BackgroundMapDataSelectionDialog(dialogParent, null)) { @@ -242,7 +265,7 @@ using (new UseCustomSettingsHelper(new TestSettingsHelper { - ApplicationLocalUserSettingsDirectory = TestHelper.GetTestDataPath(TestDataPath.Core.Components.Gis.IO, "noConfig") + ApplicationLocalUserSettingsDirectory = TestHelper.GetTestDataPath(testPath, "EmptyWmtsConnectionInfo") })) using (new UseCustomTileSourceFactoryConfig(tileFactory)) using (var dialogParent = new Form()) @@ -378,18 +401,24 @@ // Setup mockRepository.ReplayAll(); - // Call - TestDelegate call = () => + using (new UseCustomSettingsHelper(new TestSettingsHelper { - using (var dialogParent = new Form()) - using (var dialog = new BackgroundMapDataSelectionDialog(dialogParent, null)) + ApplicationLocalUserSettingsDirectory = TestHelper.GetTestDataPath(testPath, "EmptyWmtsConnectionInfo") + })) + { + // Call + TestDelegate call = () => { - dialog.Dispose(); - } - }; + using (var dialogParent = new Form()) + using (var dialog = new BackgroundMapDataSelectionDialog(dialogParent, null)) + { + dialog.Dispose(); + } + }; - // Assert - Assert.DoesNotThrow(call); + // Assert + Assert.DoesNotThrow(call); + } } private static void AssertMapDataControls(BackgroundMapDataSelectionDialog dialog) Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/test-data/EmptyWmtsConnectionInfo/wmtsConnectionInfo.config =================================================================== diff -u --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/test-data/EmptyWmtsConnectionInfo/wmtsConnectionInfo.config (revision 0) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/test-data/EmptyWmtsConnectionInfo/wmtsConnectionInfo.config (revision 773c8bead12417f353dc62c006f93fee5a68d06e) @@ -0,0 +1,2 @@ + + \ No newline at end of file Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/BackgroundDataTreeNodeInfoTest.cs =================================================================== diff -u -rc0387d79bcdc500558362264d5bc08834ebe6db5 -r773c8bead12417f353dc62c006f93fee5a68d06e --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/BackgroundDataTreeNodeInfoTest.cs (.../BackgroundDataTreeNodeInfoTest.cs) (revision c0387d79bcdc500558362264d5bc08834ebe6db5) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/BackgroundDataTreeNodeInfoTest.cs (.../BackgroundDataTreeNodeInfoTest.cs) (revision 773c8bead12417f353dc62c006f93fee5a68d06e) @@ -324,6 +324,10 @@ BackgroundMapDataType = BackgroundMapDataType.Wmts }; + using (new UseCustomSettingsHelper(new TestSettingsHelper + { + ApplicationLocalUserSettingsDirectory = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.Integration.Forms, "EmptyWmtsConnectionInfo") + })) using (var treeViewControl = new TreeViewControl()) using (var plugin = new RingtoetsPlugin()) { @@ -451,7 +455,7 @@ using (new UseCustomSettingsHelper(new TestSettingsHelper { - ApplicationLocalUserSettingsDirectory = TestHelper.GetTestDataPath(TestDataPath.Core.Components.Gis.IO, "noConfig") + ApplicationLocalUserSettingsDirectory = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.Integration.Forms, "EmptyWmtsConnectionInfo") })) using (var treeViewControl = new TreeViewControl()) using (var plugin = new RingtoetsPlugin())