Fixed problem 1 as stated by PO in issue, just throw error when water level (high/low) at riverside is below dike toe. Added tests for this. Related to Issue [MWDAM-1345]
Added code (with tests) to improve handling of "wrong" segments. To be able to test this properly, added PipingModelType.Wti2017 to supported models so we can actually define an improper test project. Adding this also helps for MWDAM-1393 and thus MWDAM-1145, Piping part.Related to Issue [MWDAM-1445]
Re-instated deep copy and reset of surface line in PerformDesignCalculation to ensure that correct surface line is used for each individual design step in case of Piping as well as in Stability.Related to Issue [MWDAM-1554]
Fixed the issue by taking the adaption of the surface line forward to before kernel Prepare statement. Added tests for it.Related to Issue [MWDAM-1554]