Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverErosionInwards/GrassCoverErosionInwardsFailureMechanismCreateExtensionsTest.cs =================================================================== diff -u -r8e310b99d8873ca1a46282c54302acb1d1678dab -rb4e3629ea2130359117dd403af8db3c8ae0c680b --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverErosionInwards/GrassCoverErosionInwardsFailureMechanismCreateExtensionsTest.cs (.../GrassCoverErosionInwardsFailureMechanismCreateExtensionsTest.cs) (revision 8e310b99d8873ca1a46282c54302acb1d1678dab) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverErosionInwards/GrassCoverErosionInwardsFailureMechanismCreateExtensionsTest.cs (.../GrassCoverErosionInwardsFailureMechanismCreateExtensionsTest.cs) (revision b4e3629ea2130359117dd403af8db3c8ae0c680b) @@ -61,15 +61,15 @@ IsRelevant = isRelevant, InputComments = { - Comments = "Some input text" + Body = "Some input text" }, OutputComments = { - Comments = "Some output text" + Body = "Some output text" }, NotRelevantComments = { - Comments = "Really not relevant" + Body = "Really not relevant" }, GeneralInput = { @@ -85,9 +85,9 @@ Assert.IsNotNull(entity); Assert.AreEqual((short) FailureMechanismType.GrassRevetmentTopErosionAndInwards, entity.FailureMechanismType); Assert.AreEqual(Convert.ToByte(isRelevant), entity.IsRelevant); - Assert.AreEqual(failureMechanism.InputComments.Comments, entity.InputComments); - Assert.AreEqual(failureMechanism.OutputComments.Comments, entity.OutputComments); - Assert.AreEqual(failureMechanism.NotRelevantComments.Comments, entity.NotRelevantComments); + Assert.AreEqual(failureMechanism.InputComments.Body, entity.InputComments); + Assert.AreEqual(failureMechanism.OutputComments.Body, entity.OutputComments); + Assert.AreEqual(failureMechanism.NotRelevantComments.Body, entity.NotRelevantComments); Assert.AreEqual(1, entity.GrassCoverErosionInwardsFailureMechanismMetaEntities.Count); GrassCoverErosionInwardsFailureMechanismMetaEntity generalInputEntity = entity.GrassCoverErosionInwardsFailureMechanismMetaEntities.First(); @@ -105,15 +105,15 @@ { InputComments = { - Comments = originalInput + Body = originalInput }, OutputComments = { - Comments = originalOutput + Body = originalOutput }, NotRelevantComments = { - Comments = originalNotRelevantText + Body = originalNotRelevantText } }; var registry = new PersistenceRegistry(); @@ -124,13 +124,13 @@ // Assert Assert.AreNotSame(originalInput, entity.InputComments, "To create stable binary representations/fingerprints, it's really important that strings are not shared."); - Assert.AreEqual(failureMechanism.InputComments.Comments, entity.InputComments); + Assert.AreEqual(failureMechanism.InputComments.Body, entity.InputComments); Assert.AreNotSame(originalOutput, entity.OutputComments, "To create stable binary representations/fingerprints, it's really important that strings are not shared."); - Assert.AreEqual(failureMechanism.OutputComments.Comments, entity.OutputComments); + Assert.AreEqual(failureMechanism.OutputComments.Body, entity.OutputComments); Assert.AreNotSame(originalNotRelevantText, entity.NotRelevantComments, "To create stable binary representations/fingerprints, it's really important that strings are not shared."); - Assert.AreEqual(failureMechanism.NotRelevantComments.Comments, entity.NotRelevantComments); + Assert.AreEqual(failureMechanism.NotRelevantComments.Body, entity.NotRelevantComments); } [Test]