Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/MacroStabilityInwardsDataSynchronizationServiceTest.cs =================================================================== diff -u -rac8798cf0a66cf04df1294d4fd08e0b1915a5b91 -rcb5cb7593dbe094dc2afee1f1a9e54f76b7a3017 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/MacroStabilityInwardsDataSynchronizationServiceTest.cs (.../MacroStabilityInwardsDataSynchronizationServiceTest.cs) (revision ac8798cf0a66cf04df1294d4fd08e0b1915a5b91) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/MacroStabilityInwardsDataSynchronizationServiceTest.cs (.../MacroStabilityInwardsDataSynchronizationServiceTest.cs) (revision cb5cb7593dbe094dc2afee1f1a9e54f76b7a3017) @@ -208,11 +208,10 @@ public void RemoveSurfaceLine_FailureMechanismNull_ThrowsArgumentNullException() { // Setup - MacroStabilityInwardsFailureMechanism failureMechanism = null; var surfaceLine = new MacroStabilityInwardsSurfaceLine(string.Empty); // Call - TestDelegate call = () => MacroStabilityInwardsDataSynchronizationService.RemoveSurfaceLine(failureMechanism, surfaceLine); + TestDelegate call = () => MacroStabilityInwardsDataSynchronizationService.RemoveSurfaceLine(null, surfaceLine); // Assert string paramName = Assert.Throws(call).ParamName; @@ -224,10 +223,9 @@ { // Setup var failureMechanism = new MacroStabilityInwardsFailureMechanism(); - MacroStabilityInwardsSurfaceLine surfaceLine = null; // Call - TestDelegate call = () => MacroStabilityInwardsDataSynchronizationService.RemoveSurfaceLine(failureMechanism, surfaceLine); + TestDelegate call = () => MacroStabilityInwardsDataSynchronizationService.RemoveSurfaceLine(failureMechanism, null); // Assert string paramName = Assert.Throws(call).ParamName; @@ -285,11 +283,8 @@ [Test] public void RemoveAllSurfaceLine_FailureMechanismNull_ThrowsArgumentNullException() { - // Setup - MacroStabilityInwardsFailureMechanism failureMechanism = null; - // Call - TestDelegate call = () => MacroStabilityInwardsDataSynchronizationService.RemoveAllSurfaceLines(failureMechanism); + TestDelegate call = () => MacroStabilityInwardsDataSynchronizationService.RemoveAllSurfaceLines(null); // Assert string paramName = Assert.Throws(call).ParamName; @@ -347,11 +342,10 @@ public void RemoveStochasticSoilModel_FailureMechanismNull_ThrowsArgumentNullException() { // Setup - MacroStabilityInwardsFailureMechanism failureMechanism = null; MacroStabilityInwardsStochasticSoilModel soilModel = MacroStabilityInwardsStochasticSoilModelTestFactory.CreateValidStochasticSoilModel(); // Call - TestDelegate call = () => MacroStabilityInwardsDataSynchronizationService.RemoveStochasticSoilModel(failureMechanism, soilModel); + TestDelegate call = () => MacroStabilityInwardsDataSynchronizationService.RemoveStochasticSoilModel(null, soilModel); // Assert string paramName = Assert.Throws(call).ParamName; @@ -363,10 +357,9 @@ { // Setup var failureMechanism = new MacroStabilityInwardsFailureMechanism(); - MacroStabilityInwardsStochasticSoilModel soilModel = null; // Call - TestDelegate call = () => MacroStabilityInwardsDataSynchronizationService.RemoveStochasticSoilModel(failureMechanism, soilModel); + TestDelegate call = () => MacroStabilityInwardsDataSynchronizationService.RemoveStochasticSoilModel(failureMechanism, null); // Assert string paramName = Assert.Throws(call).ParamName; @@ -424,11 +417,8 @@ [Test] public void RemoveAllStochasticSoilModel_FailureMechanismNull_ThrowsArgumentNullException() { - // Setup - MacroStabilityInwardsFailureMechanism failureMechanism = null; - // Call - TestDelegate call = () => MacroStabilityInwardsDataSynchronizationService.RemoveAllStochasticSoilModels(failureMechanism); + TestDelegate call = () => MacroStabilityInwardsDataSynchronizationService.RemoveAllStochasticSoilModels(null); // Assert string paramName = Assert.Throws(call).ParamName;