Index: Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/ViewInfos/DuneLocationCalculationsViewInfoTest.cs =================================================================== diff -u -r06441edaab0995428e20704fbedc959f5515f4a7 -r2b5c91f2bd6369a53ab9e89915707f98ce553463 --- Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/ViewInfos/DuneLocationCalculationsViewInfoTest.cs (.../DuneLocationCalculationsViewInfoTest.cs) (revision 06441edaab0995428e20704fbedc959f5515f4a7) +++ Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/ViewInfos/DuneLocationCalculationsViewInfoTest.cs (.../DuneLocationCalculationsViewInfoTest.cs) (revision 2b5c91f2bd6369a53ab9e89915707f98ce553463) @@ -109,7 +109,9 @@ var context = new DuneLocationCalculationsContext(new ObservableList(), new DuneErosionFailureMechanism(), - assessmentSection); + assessmentSection, + () => 0.01, + "Category Boundary Name"); // Call object viewData = info.GetViewData(context); @@ -129,7 +131,9 @@ var context = new DuneLocationCalculationsContext(new ObservableList(), new DuneErosionFailureMechanism(), - assessmentSection); + assessmentSection, + () => 0.01, + "Category Boundary Name"); // Call bool additionalDataCheck = info.AdditionalDataCheck(context); @@ -153,7 +157,9 @@ var context = new DuneLocationCalculationsContext(duneLocations, new DuneErosionFailureMechanism(), - assessmentSection); + assessmentSection, + () => 0.01, + "Category Boundary Name"); // Call bool additionalDataCheck = info.AdditionalDataCheck(context); @@ -174,10 +180,11 @@ mocks.ReplayAll(); var failureMechanism = new DuneErosionFailureMechanism(); - var context = new DuneLocationCalculationsContext( - new ObservableList(), - failureMechanism, - assessmentSection); + var context = new DuneLocationCalculationsContext(new ObservableList(), + failureMechanism, + assessmentSection, + () => 0.01, + "Category Boundary Name"); plugin.Gui = gui; plugin.Activate(); @@ -197,6 +204,8 @@ public void AfterCreate_Always_SetsExpectedProperties() { // Setup + Func getNormFunc = () => 0.01; + var mocks = new MockRepository(); var assessmentSection = mocks.Stub(); var window = mocks.Stub(); @@ -207,17 +216,19 @@ var failureMechanism = new DuneErosionFailureMechanism(); var locations = new ObservableList(); - var data = new DuneLocationCalculationsContext( - locations, - failureMechanism, - assessmentSection); + var data = new DuneLocationCalculationsContext(locations, + failureMechanism, + assessmentSection, + getNormFunc, + "Category Boundary Name"); plugin.Gui = gui; plugin.Activate(); using (var view = new DuneLocationCalculationsView(locations, failureMechanism, - assessmentSection)) + assessmentSection, + getNormFunc)) { // Call info.AfterCreate(view, data); @@ -247,7 +258,8 @@ using (var view = new DuneLocationCalculationsView(new ObservableList(), failureMechanism, - assessmentSection)) + assessmentSection, + () => 0.01)) { // Call bool closeForData = info.CloseForData(view, assessmentSection); @@ -280,7 +292,8 @@ using (var view = new DuneLocationCalculationsView(new ObservableList(), new DuneErosionFailureMechanism(), - assessmentSectionA)) + assessmentSectionA, + () => 0.01)) { // Call bool closeForData = info.CloseForData(view, assessmentSectionB); @@ -314,7 +327,8 @@ using (var view = new DuneLocationCalculationsView(new ObservableList(), failureMechanism, - assessmentSection)) + assessmentSection, + () => 0.01)) { // Call bool closeForData = info.CloseForData(view, duneErosionFailureMechanismContext); @@ -351,7 +365,8 @@ using (var view = new DuneLocationCalculationsView(new ObservableList(), new DuneErosionFailureMechanism(), - assessmentSectionA)) + assessmentSectionA, + () => 0.01)) { // Call bool closeForData = info.CloseForData(view, duneErosionFailureMechanismContext); @@ -379,7 +394,8 @@ using (var view = new DuneLocationCalculationsView(new ObservableList(), new DuneErosionFailureMechanism(), - assessmentSection)) + assessmentSection, + () => 0.01)) { // Call bool closeForData = info.CloseForData(view, new object()); @@ -401,7 +417,8 @@ using (var view = new DuneLocationCalculationsView(new ObservableList(), new DuneErosionFailureMechanism(), - assessmentSection)) + assessmentSection, + () => 0.01)) { // Call bool closeForData = info.CloseForData(view, new object());