Index: Riskeer/Migration/test/Riskeer.Migration.Integration.Test/MigrationTo212IntegrationTest.cs =================================================================== diff -u -r26af334f975cd2b62e89c4ca784a482675adb700 -r5b9bfe2bf39039fc9ec60205a25e4c019e3bf4ea --- Riskeer/Migration/test/Riskeer.Migration.Integration.Test/MigrationTo212IntegrationTest.cs (.../MigrationTo212IntegrationTest.cs) (revision 26af334f975cd2b62e89c4ca784a482675adb700) +++ Riskeer/Migration/test/Riskeer.Migration.Integration.Test/MigrationTo212IntegrationTest.cs (.../MigrationTo212IntegrationTest.cs) (revision 5b9bfe2bf39039fc9ec60205a25e4c019e3bf4ea) @@ -77,6 +77,8 @@ AssertPipingScenarioConfigurationPerFailureMechanismSection(reader, sourceFilePath); AssertPipingFailureMechanismSectionResults(reader, sourceFilePath); AssertSemiProbabilisticPipingOutput(reader, sourceFilePath); + + AssertProbabilisticPipingOutput(reader); AssertGrassCoverErosionInwardsFailureMechanismMetaEntity(reader, sourceFilePath); AssertGrassCoverErosionInwardsCalculation(reader, sourceFilePath); @@ -104,8 +106,11 @@ AssertMacroStabilityInwardsFailureMechanismSectionResults(reader, sourceFilePath); AssertHeightStructuresSectionResults(reader, sourceFilePath); + AssertHeightStructuresOutput(reader); AssertClosingStructuresSectionResults(reader, sourceFilePath); + AssertClosingStructuresOutput(reader); AssertStabilityPointStructuresSectionResults(reader, sourceFilePath); + AssertStabilityPointStructuresOutput(reader); AssertStandAloneFailureMechanismMetaEntity(reader, sourceFilePath); @@ -506,6 +511,14 @@ { AssertAdoptableFailureMechanismSectionResults(reader, "HeightStructuresSectionResultEntity", sourceFilePath); } + + private static void AssertHeightStructuresOutput(MigratedDatabaseReader reader) + { + const string validateOutput = + "SELECT COUNT() = 0 " + + "FROM [HeightStructuresOutputEntity]; "; + reader.AssertReturnedDataIsValid(validateOutput); + } #endregion @@ -515,6 +528,14 @@ { AssertAdoptableFailureMechanismSectionResults(reader, "ClosingStructuresSectionResultEntity", sourceFilePath); } + + private static void AssertClosingStructuresOutput(MigratedDatabaseReader reader) + { + const string validateOutput = + "SELECT COUNT() = 0 " + + "FROM [ClosingStructuresOutputEntity]; "; + reader.AssertReturnedDataIsValid(validateOutput); + } #endregion @@ -524,6 +545,14 @@ { AssertAdoptableFailureMechanismSectionResults(reader, "StabilityPointStructuresSectionResultEntity", sourceFilePath); } + + private static void AssertStabilityPointStructuresOutput(MigratedDatabaseReader reader) + { + const string validateOutput = + "SELECT COUNT() = 0 " + + "FROM [StabilityPointStructuresOutputEntity]; "; + reader.AssertReturnedDataIsValid(validateOutput); + } #endregion @@ -911,6 +940,14 @@ "DETACH SOURCEPROJECT;"; reader.AssertReturnedDataIsValid(validateOutput); } + + private static void AssertProbabilisticPipingOutput(MigratedDatabaseReader reader) + { + const string validateOutput = + "SELECT COUNT() = 0 " + + "FROM [ProbabilisticPipingCalculationOutputEntity]; "; + reader.AssertReturnedDataIsValid(validateOutput); + } #endregion @@ -1073,6 +1110,11 @@ private static void AssertGrassCoverErosionInwardsOutput(MigratedDatabaseReader reader) { + const string validateOutput = + "SELECT COUNT() = 0 " + + "FROM [GrassCoverErosionInwardsOutputEntity]; "; + reader.AssertReturnedDataIsValid(validateOutput); + const string validateDikeHeightOutput = "SELECT COUNT() = 0 " + "FROM [GrassCoverErosionInwardsDikeHeightOutputEntity]; "; @@ -1344,7 +1386,7 @@ } #endregion - + private static void AssertIllustrationPointResults(MigratedDatabaseReader reader) { const string validateFaultTreeIllustrationPoint =