Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/BackgroundMapDataSelectionDialogTest.cs =================================================================== diff -u -r7fc071aa21ada037052184432c734ce79adf5c8c -redc7a80d9375238ec8bd7bece16d2bc77a0d0672 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/BackgroundMapDataSelectionDialogTest.cs (.../BackgroundMapDataSelectionDialogTest.cs) (revision 7fc071aa21ada037052184432c734ce79adf5c8c) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/BackgroundMapDataSelectionDialogTest.cs (.../BackgroundMapDataSelectionDialogTest.cs) (revision edc7a80d9375238ec8bd7bece16d2bc77a0d0672) @@ -113,10 +113,10 @@ { // Setup var dialogParent = mockRepository.Stub(); - WmtsMapData mapData = WmtsMapDataTestHelper.CreateDefaultPdokMapData(); - tileFactory.Expect(tf => tf.GetWmtsTileSources(mapData.SourceCapabilitiesUrl)).Return(Enumerable.Empty()); mockRepository.ReplayAll(); + WmtsMapData mapData = WmtsMapDataTestHelper.CreateDefaultPdokMapData(); + using (new UseCustomTileSourceFactoryConfig(tileFactory)) { // Call @@ -338,8 +338,13 @@ WmtsLocationControl wmtsLocationControl = GetComboBoxItem(comboBox); comboBox.SelectedItem = wmtsLocationControl; + + var connectButton = dialog.Controls.Find("connectToButton", true).OfType