Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Update/ProjectUpdateExtensionsTest.cs =================================================================== diff -u -rae6f0c6b534ca650e160ae6d9c0bc90369d25c68 -rfe68c3f7cae5946b93d9e27eb532b176a6b26b84 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Update/ProjectUpdateExtensionsTest.cs (.../ProjectUpdateExtensionsTest.cs) (revision ae6f0c6b534ca650e160ae6d9c0bc90369d25c68) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Update/ProjectUpdateExtensionsTest.cs (.../ProjectUpdateExtensionsTest.cs) (revision fe68c3f7cae5946b93d9e27eb532b176a6b26b84) @@ -234,65 +234,70 @@ var ringtoetsEntities = RingtoetsEntitiesHelper.CreateStub(mocks); mocks.ReplayAll(); - var project = new Project + var section = new AssessmentSection(AssessmentSectionComposition.Dike) { StorageId = 1, - Items = + PipingFailureMechanism = { - new AssessmentSection(AssessmentSectionComposition.Dike) + StorageId = 1, + CalculationsGroup = { - StorageId = 1, - PipingFailureMechanism = - { - StorageId = 1 - }, - GrassCoverErosionInwards = - { - StorageId = 1 - }, - MacrostabilityInwards = - { - StorageId = 1 - }, - HeightStructures = - { - StorageId = 1 - }, - ClosingStructure = - { - StorageId = 1 - }, - StrengthStabilityPointConstruction = - { - StorageId = 1 - }, - StabilityStoneCover = - { - StorageId = 1 - }, - WaveImpactAsphaltCover = - { - StorageId = 1 - }, - GrassCoverErosionOutwards = - { - StorageId = 1 - }, - GrassCoverSlipOffOutwards = - { - StorageId = 1 - }, - PipingStructure = - { - StorageId = 1 - }, - DuneErosion = - { - StorageId = 1 - } + StorageId = 23 } + }, + GrassCoverErosionInwards = + { + StorageId = 1 + }, + MacrostabilityInwards = + { + StorageId = 1 + }, + HeightStructures = + { + StorageId = 1 + }, + ClosingStructure = + { + StorageId = 1 + }, + StrengthStabilityPointConstruction = + { + StorageId = 1 + }, + StabilityStoneCover = + { + StorageId = 1 + }, + WaveImpactAsphaltCover = + { + StorageId = 1 + }, + GrassCoverErosionOutwards = + { + StorageId = 1 + }, + GrassCoverSlipOffOutwards = + { + StorageId = 1 + }, + PipingStructure = + { + StorageId = 1 + }, + DuneErosion = + { + StorageId = 1 } }; + var project = new Project + { + StorageId = 1, + Items = + { + section + } + }; var assessmentSectionEntity = new AssessmentSectionEntity { @@ -309,6 +314,10 @@ ringtoetsEntities.ProjectEntities.Add(projectEntity); ringtoetsEntities.AssessmentSectionEntities.Add(assessmentSectionEntity); + ringtoetsEntities.CalculationGroupEntities.Add(new CalculationGroupEntity + { + CalculationGroupEntityId = section.PipingFailureMechanism.CalculationsGroup.StorageId + }); ringtoetsEntities.FailureMechanismEntities.Add(new FailureMechanismEntity { FailureMechanismEntityId = 1