Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Update/AssessmentSectionUpdateExtensionsTest.cs =================================================================== diff -u -rfe68c3f7cae5946b93d9e27eb532b176a6b26b84 -rea14c73fc9ac706d48a5af7125bb570a5d07dd28 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Update/AssessmentSectionUpdateExtensionsTest.cs (.../AssessmentSectionUpdateExtensionsTest.cs) (revision fe68c3f7cae5946b93d9e27eb532b176a6b26b84) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Update/AssessmentSectionUpdateExtensionsTest.cs (.../AssessmentSectionUpdateExtensionsTest.cs) (revision ea14c73fc9ac706d48a5af7125bb570a5d07dd28) @@ -22,7 +22,6 @@ using System; using System.Data.Entity; using System.Linq; - using Application.Ringtoets.Storage.Create; using Application.Ringtoets.Storage.DbContext; using Application.Ringtoets.Storage.Exceptions; @@ -41,7 +40,7 @@ [TestFixture] public class AssessmentSectionUpdateExtensionsTest { - private int totalAmountOfFailureMechanismsInAssessmentSection = 18; + private readonly int totalAmountOfFailureMechanismsInAssessmentSection = 18; [Test] public void Update_WithoutContext_ThrowsArgumentNullException() @@ -138,10 +137,14 @@ mocks.ReplayAll(); - var newName = "newName"; + const string newName = "newName"; + const string comments = "Some text"; + const int norm = int.MaxValue; var composition = AssessmentSectionComposition.Dune; var section = InitializeCreatedDikeAssessmentSection(AssessmentSectionComposition.Dune); section.Name = newName; + section.Comments = comments; + section.FailureMechanismContribution.Norm = norm; var entity = new AssessmentSectionEntity { @@ -161,6 +164,8 @@ // Assert Assert.AreEqual(newName, entity.Name); + Assert.AreEqual(comments, entity.Comments); + Assert.AreEqual(norm, entity.Norm); Assert.AreEqual((short) composition, entity.Composition); Assert.IsEmpty(entity.ReferenceLinePointEntities); Assert.IsEmpty(entity.HydraulicLocationEntities); @@ -588,11 +593,11 @@ { StorageId = failureMechanismId++ }, - MacrostabilityOutwards = + MacrostabilityOutwards = { StorageId = failureMechanismId++ }, - Microstability = + Microstability = { StorageId = failureMechanismId++ }, @@ -608,7 +613,7 @@ { StorageId = failureMechanismId++ }, - StrengthStabilityLengthwiseConstruction = + StrengthStabilityLengthwiseConstruction = { StorageId = failureMechanismId++ }, @@ -620,7 +625,7 @@ { StorageId = failureMechanismId++ }, - WaterPressureAsphaltCover = + WaterPressureAsphaltCover = { StorageId = failureMechanismId++ }, @@ -632,7 +637,7 @@ { StorageId = failureMechanismId++ }, - GrassCoverSlipOffInwards = + GrassCoverSlipOffInwards = { StorageId = failureMechanismId++ }, @@ -644,7 +649,7 @@ { StorageId = failureMechanismId++ }, - TechnicalInnovation = + TechnicalInnovation = { StorageId = failureMechanismId++ }