Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/WaveHeightLocationsViewInfoTest.cs =================================================================== diff -u -r2b2b747a35d38d092eca298599e82ce88ee6e2d3 -r9a848a7f52c953e8a44544609d919ea45ac84c6e --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/WaveHeightLocationsViewInfoTest.cs (.../WaveHeightLocationsViewInfoTest.cs) (revision 2b2b747a35d38d092eca298599e82ce88ee6e2d3) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/WaveHeightLocationsViewInfoTest.cs (.../WaveHeightLocationsViewInfoTest.cs) (revision 9a848a7f52c953e8a44544609d919ea45ac84c6e) @@ -65,7 +65,10 @@ public void GetViewName_Always_ReturnsViewName() { // Setup - using (var view = new WaveHeightLocationsView(new ObservableList(), new ObservableTestAssessmentSectionStub(), () => 0.01)) + using (var view = new WaveHeightLocationsView(new ObservableList(), + hbl => new HydraulicBoundaryLocationCalculation(), + new ObservableTestAssessmentSectionStub(), + () => 0.01)) { // Call string viewName = info.GetViewName(view, Enumerable.Empty()); @@ -159,7 +162,10 @@ var locations = new ObservableList(); var context = new WaveHeightLocationsContext(locations, assessmentSection); - using (var view = new WaveHeightLocationsView(locations, assessmentSection, () => 0.01)) + using (var view = new WaveHeightLocationsView(locations, + hbl => new HydraulicBoundaryLocationCalculation(), + assessmentSection, + () => 0.01)) using (var ringtoetsPlugin = new RingtoetsPlugin()) { info = ringtoetsPlugin.GetViewInfos().First(tni => tni.ViewType == typeof(WaveHeightLocationsView)); @@ -172,6 +178,7 @@ // Assert Assert.IsInstanceOf(view.CalculationGuiService); } + mocks.VerifyAll(); } @@ -181,7 +188,10 @@ // Setup var assessmentSection = new ObservableTestAssessmentSectionStub(); - using (var view = new WaveHeightLocationsView(new ObservableList(), assessmentSection, () => 0.01)) + using (var view = new WaveHeightLocationsView(new ObservableList(), + hbl => new HydraulicBoundaryLocationCalculation(), + assessmentSection, + () => 0.01)) { // Call bool closeForData = info.CloseForData(view, assessmentSection); @@ -198,7 +208,10 @@ var assessmentSectionA = new ObservableTestAssessmentSectionStub(); var assessmentSectionB = new ObservableTestAssessmentSectionStub(); - using (var view = new WaveHeightLocationsView(new ObservableList(), assessmentSectionA, () => 0.01)) + using (var view = new WaveHeightLocationsView(new ObservableList(), + hbl => new HydraulicBoundaryLocationCalculation(), + assessmentSectionA, + () => 0.01)) { // Call bool closeForData = info.CloseForData(view, assessmentSectionB); @@ -214,9 +227,11 @@ // Setup var assessmentSectionA = new ObservableTestAssessmentSectionStub(); - using (var view = new WaveHeightLocationsView(new ObservableList(), assessmentSectionA, () => 0.01)) + using (var view = new WaveHeightLocationsView(new ObservableList(), + hbl => new HydraulicBoundaryLocationCalculation(), + assessmentSectionA, + () => 0.01)) { - // Call bool closeForData = info.CloseForData(view, new object());