Index: Ringtoets/Common/test/Ringtoets.Common.Service.Test/WaveHeightCalculationActivityTest.cs =================================================================== diff -u -rcdfbf84b1449ce60926c5fefd2a06085bcbefbe9 -r76948e8765899b35776102ecd211d3d7575a9e4d --- Ringtoets/Common/test/Ringtoets.Common.Service.Test/WaveHeightCalculationActivityTest.cs (.../WaveHeightCalculationActivityTest.cs) (revision cdfbf84b1449ce60926c5fefd2a06085bcbefbe9) +++ Ringtoets/Common/test/Ringtoets.Common.Service.Test/WaveHeightCalculationActivityTest.cs (.../WaveHeightCalculationActivityTest.cs) (revision 76948e8765899b35776102ecd211d3d7575a9e4d) @@ -55,10 +55,10 @@ { // Setup const string locationName = "locationName"; - const string activityName = "GetActivityName"; + const string activityDescription = "activityDescription"; var calculationMessageProvider = mockRepository.Stub(); - calculationMessageProvider.Stub(calc => calc.GetActivityName(locationName)).Return(activityName); + calculationMessageProvider.Stub(calc => calc.GetActivityDescription(locationName)).Return(activityDescription); mockRepository.ReplayAll(); var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(0, locationName, 0, 0); @@ -70,7 +70,7 @@ // Assert Assert.IsInstanceOf(activity); - Assert.AreSame(activityName, activity.Name); + Assert.AreSame(activityDescription, activity.Description); Assert.IsNull(activity.ProgressText); Assert.AreEqual(ActivityState.None, activity.State); mockRepository.VerifyAll(); @@ -116,11 +116,11 @@ // Setup string inValidFilePath = Path.Combine(testDataPath, "notexisting.sqlite"); const string locationName = "testLocation"; - const string activityName = "GetActivityName"; + const string activityDescription = "activityDescription"; const string calculationName = "locationName"; var calculationMessageProvider = mockRepository.StrictMock(); - calculationMessageProvider.Stub(calc => calc.GetActivityName(locationName)).Return(activityName); + calculationMessageProvider.Stub(calc => calc.GetActivityDescription(locationName)).Return(activityDescription); calculationMessageProvider.Stub(calc => calc.GetCalculationName(locationName)).Return(calculationName).Repeat.AtLeastOnce(); mockRepository.ReplayAll(); @@ -149,7 +149,7 @@ // Setup string validFilePath = Path.Combine(testDataPath, validFile); const string locationName = "locationName"; - const string activityName = "GetActivityName"; + const string activityDescription = "activityDescription"; const string calculationName = "locationName"; const double norm = 1.0 / 30; @@ -162,7 +162,7 @@ var calculatorFactory = mockRepository.Stub(); calculatorFactory.Expect(cf => cf.CreateWaveHeightCalculator(testDataPath)).Return(testWaveHeightCalculator); var calculationMessageProvider = mockRepository.Stub(); - calculationMessageProvider.Stub(calc => calc.GetActivityName(locationName)).Return(activityName); + calculationMessageProvider.Stub(calc => calc.GetActivityDescription(locationName)).Return(activityDescription); calculationMessageProvider.Stub(calc => calc.GetCalculationName(locationName)).Return(calculationName); mockRepository.ReplayAll(); @@ -201,12 +201,12 @@ // Setup string validFilePath = Path.Combine(testDataPath, validFile); const string locationName = "locationName"; - const string activityName = "GetActivityName"; + const string activityDescription = "activityDescription"; const double norm = 1.0 / 30; var calculationMessageProvider = mockRepository.Stub(); - calculationMessageProvider.Stub(calc => calc.GetActivityName(locationName)).Return(activityName); - calculationMessageProvider.Stub(calc => calc.GetCalculationName(locationName)).Return(activityName); + calculationMessageProvider.Stub(calc => calc.GetActivityDescription(locationName)).Return(activityDescription); + calculationMessageProvider.Stub(calc => calc.GetCalculationName(locationName)).Return(activityDescription); mockRepository.ReplayAll(); var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(1, locationName, 0, 0) @@ -247,7 +247,7 @@ var calculatorFactory = mockRepository.Stub(); calculatorFactory.Expect(cf => cf.CreateWaveHeightCalculator(testDataPath)).Return(testWaveHeightCalculator); var calculationMessageProvider = mockRepository.Stub(); - calculationMessageProvider.Stub(calc => calc.GetActivityName(locationName)).Return(string.Empty); + calculationMessageProvider.Stub(calc => calc.GetActivityDescription(locationName)).Return(string.Empty); calculationMessageProvider.Stub(calc => calc.GetCalculationName(locationName)).Return(string.Empty).Repeat.AtLeastOnce(); mockRepository.ReplayAll(); @@ -288,7 +288,7 @@ var calculatorFactory = mockRepository.Stub(); calculatorFactory.Expect(cf => cf.CreateWaveHeightCalculator(testDataPath)).Return(testWaveHeightCalculator); var calculationMessageProvider = mockRepository.Stub(); - calculationMessageProvider.Stub(calc => calc.GetActivityName(locationName)).Return(string.Empty); + calculationMessageProvider.Stub(calc => calc.GetActivityDescription(locationName)).Return(string.Empty); calculationMessageProvider.Stub(calc => calc.GetCalculationName(locationName)).Return(string.Empty); calculationMessageProvider.Stub(calc => calc.GetCalculationFailedMessage(null, null)).IgnoreArguments().Return(calculationFailedMessage); mockRepository.ReplayAll(); @@ -325,7 +325,7 @@ { // Setup const string locationName = "locationName"; - const string activityName = "getActivityName"; + const string activityDescription = "activityDescription"; const string calculationNotConvergedMessage = "GetCalculatedNotConvergedMessage"; var testWaveHeightCalculator = new TestWaveHeightCalculator @@ -336,7 +336,7 @@ var calculatorFactory = mockRepository.Stub(); calculatorFactory.Expect(cf => cf.CreateWaveHeightCalculator(testDataPath)).Return(testWaveHeightCalculator); var calculationMessageProvider = mockRepository.Stub(); - calculationMessageProvider.Stub(calc => calc.GetActivityName(locationName)).Return(activityName); + calculationMessageProvider.Stub(calc => calc.GetActivityDescription(locationName)).Return(activityDescription); calculationMessageProvider.Stub(calc => calc.GetCalculationName(locationName)).Return("GetCalculationName").Repeat.AtLeastOnce(); calculationMessageProvider.Stub(calc => calc.GetCalculatedNotConvergedMessage(locationName)).Return(calculationNotConvergedMessage); mockRepository.ReplayAll(); @@ -396,7 +396,7 @@ var calculatorFactory = mockRepository.Stub(); calculatorFactory.Expect(cf => cf.CreateWaveHeightCalculator(testDataPath)).Return(testWaveHeightCalculator); var calculationMessageProvider = mockRepository.StrictMock(); - calculationMessageProvider.Stub(calc => calc.GetActivityName(locationName)).Return(locationName); + calculationMessageProvider.Stub(calc => calc.GetActivityDescription(locationName)).Return(locationName); calculationMessageProvider.Stub(calc => calc.GetCalculationName(locationName)).Return(locationName); calculationMessageProvider.Stub(calc => calc.GetCalculationFailedMessage(null, null)).IgnoreArguments().Return(calculationFailedMessage); calculationMessageProvider.Stub(calc => calc.GetCalculationFailedUnexplainedMessage(locationName)).Return(calculationFailedMessage);