Index: Ringtoets/Common/test/Ringtoets.Common.Service.Test/DesignWaterLevelCalculationServiceTest.cs =================================================================== diff -u -r6c058f12138b8a73a78eacd10357d9caa81ed67d -r92210258706d0f57e05552037b676bd941a6fe19 --- Ringtoets/Common/test/Ringtoets.Common.Service.Test/DesignWaterLevelCalculationServiceTest.cs (.../DesignWaterLevelCalculationServiceTest.cs) (revision 6c058f12138b8a73a78eacd10357d9caa81ed67d) +++ Ringtoets/Common/test/Ringtoets.Common.Service.Test/DesignWaterLevelCalculationServiceTest.cs (.../DesignWaterLevelCalculationServiceTest.cs) (revision 92210258706d0f57e05552037b676bd941a6fe19) @@ -59,15 +59,15 @@ mockRepository.ReplayAll(); // Call - Action call = () => valid = DesignWaterLevelCalculationService.Validate(calculationName, validFilePath, messageProvider); + Action call = () => valid = DesignWaterLevelCalculationService.Validate(validFilePath); // Assert TestHelper.AssertLogMessages(call, messages => { string[] msgs = messages.ToArray(); Assert.AreEqual(2, msgs.Length); - CalculationServiceTestHelper.AssertValidationStartMessage(calculationName, msgs[0]); - CalculationServiceTestHelper.AssertValidationEndMessage(calculationName, msgs[1]); + CalculationServiceTestHelper.AssertValidationStartMessage(msgs[0]); + CalculationServiceTestHelper.AssertValidationEndMessage(msgs[1]); }); Assert.IsTrue(valid); mockRepository.VerifyAll(); @@ -87,16 +87,16 @@ mockRepository.ReplayAll(); // Call - Action call = () => valid = DesignWaterLevelCalculationService.Validate(calculationName, notValidFilePath, messageProvider); + Action call = () => valid = DesignWaterLevelCalculationService.Validate(notValidFilePath); // Assert TestHelper.AssertLogMessages(call, messages => { string[] msgs = messages.ToArray(); Assert.AreEqual(3, msgs.Length); - CalculationServiceTestHelper.AssertValidationStartMessage(calculationName, msgs[0]); + CalculationServiceTestHelper.AssertValidationStartMessage(msgs[0]); StringAssert.StartsWith("Herstellen van de verbinding met de hydraulische randvoorwaardendatabase is mislukt. Fout bij het lezen van bestand", msgs[1]); - CalculationServiceTestHelper.AssertValidationEndMessage(calculationName, msgs[2]); + CalculationServiceTestHelper.AssertValidationEndMessage(msgs[2]); }); Assert.IsFalse(valid); mockRepository.VerifyAll(); @@ -116,16 +116,16 @@ mockRepository.ReplayAll(); // Call - Action call = () => valid = DesignWaterLevelCalculationService.Validate(calculationName, notValidFilePath, messageProvider); + Action call = () => valid = DesignWaterLevelCalculationService.Validate(notValidFilePath); // Assert TestHelper.AssertLogMessages(call, messages => { string[] msgs = messages.ToArray(); Assert.AreEqual(3, msgs.Length); - CalculationServiceTestHelper.AssertValidationStartMessage(calculationName, msgs[0]); + CalculationServiceTestHelper.AssertValidationStartMessage(msgs[0]); StringAssert.StartsWith("Herstellen van de verbinding met de hydraulische randvoorwaardendatabase is mislukt. Fout bij het lezen van bestand", msgs[1]); - CalculationServiceTestHelper.AssertValidationEndMessage(calculationName, msgs[2]); + CalculationServiceTestHelper.AssertValidationEndMessage(msgs[2]); }); Assert.IsFalse(valid); mockRepository.VerifyAll(); @@ -389,10 +389,10 @@ { string[] msgs = messages.ToArray(); Assert.AreEqual(4, msgs.Length); - CalculationServiceTestHelper.AssertCalculationStartMessage(calculationName, msgs[0]); + CalculationServiceTestHelper.AssertCalculationStartMessage(msgs[0]); StringAssert.StartsWith(calculationFailedMessage, msgs[1]); StringAssert.StartsWith("Toetspeil berekening is uitgevoerd op de tijdelijke locatie", msgs[2]); - CalculationServiceTestHelper.AssertCalculationEndMessage(calculationName, msgs[3]); + CalculationServiceTestHelper.AssertCalculationEndMessage(msgs[3]); }); Assert.IsTrue(exceptionThrown); } @@ -455,10 +455,10 @@ { string[] msgs = messages.ToArray(); Assert.AreEqual(4, msgs.Length); - CalculationServiceTestHelper.AssertCalculationStartMessage(calculationName, msgs[0]); + CalculationServiceTestHelper.AssertCalculationStartMessage(msgs[0]); StringAssert.StartsWith(calculationFailedUnexplainedMessage, msgs[1]); StringAssert.StartsWith("Toetspeil berekening is uitgevoerd op de tijdelijke locatie", msgs[2]); - CalculationServiceTestHelper.AssertCalculationEndMessage(calculationName, msgs[3]); + CalculationServiceTestHelper.AssertCalculationEndMessage(msgs[3]); }); Assert.IsTrue(exceptionThrown); } @@ -523,10 +523,10 @@ { string[] msgs = messages.ToArray(); Assert.AreEqual(4, msgs.Length); - CalculationServiceTestHelper.AssertCalculationStartMessage(calculationName, msgs[0]); + CalculationServiceTestHelper.AssertCalculationStartMessage(msgs[0]); StringAssert.StartsWith(calculationFailedMessage, msgs[1]); StringAssert.StartsWith("Toetspeil berekening is uitgevoerd op de tijdelijke locatie", msgs[2]); - CalculationServiceTestHelper.AssertCalculationEndMessage(calculationName, msgs[3]); + CalculationServiceTestHelper.AssertCalculationEndMessage(msgs[3]); }); Assert.IsTrue(exceptionThrown); Assert.AreEqual(calculator.LastErrorFileContent, exceptionMessage);