Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/RingtoetsMapControlTest.cs =================================================================== diff -u -r1d33f6502f5ef2d4775c0afb39359e8108acd7d2 -rfe39b1e6b9a972d68c2b357619355b4f94161db0 --- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/RingtoetsMapControlTest.cs (.../RingtoetsMapControlTest.cs) (revision 1d33f6502f5ef2d4775c0afb39359e8108acd7d2) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/RingtoetsMapControlTest.cs (.../RingtoetsMapControlTest.cs) (revision fe39b1e6b9a972d68c2b357619355b4f94161db0) @@ -164,21 +164,10 @@ // Given var mocks = new MockRepository(); var observer = mocks.StrictMock(); - var tileSourceFactory = mocks.StrictMock(); - - var testWellKnownTileSource = new TestWellKnownTileSource(new WellKnownTileSourceMapData(WellKnownTileSource.BingAerial)); - - string sourceCapabilitiesUrl = originalBackgroundData.Configuration is WmtsBackgroundDataConfiguration - ? ((WmtsBackgroundDataConfiguration) originalBackgroundData.Configuration).SourceCapabilitiesUrl - : ((WmtsBackgroundDataConfiguration) newBackgroundData.Configuration).SourceCapabilitiesUrl; - - tileSourceFactory.Expect(tsf => tsf.GetWmtsTileSources(sourceCapabilitiesUrl)) - .Return(Enumerable.Empty()); - tileSourceFactory.Expect(tsf => tsf.GetKnownTileSource(KnownTileSource.BingAerial)).Return(testWellKnownTileSource); mocks.ReplayAll(); using (new UseCustomSettingsHelper(testSettingsHelper)) - using (new UseCustomTileSourceFactoryConfig(tileSourceFactory)) + using (new UseCustomTileSourceFactoryConfig(new TestTileSourceFactory(BackgroundDataConverter.ConvertFrom(originalBackgroundData)))) { var ringtoetsMapControl = new RingtoetsMapControl(); var mapDataCollection = new MapDataCollection("Collection");