Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/TechnicalInnovation/TechnicalInnovationFailureMechanismCreateExtensionsTest.cs =================================================================== diff -u -r8e310b99d8873ca1a46282c54302acb1d1678dab -rb4e3629ea2130359117dd403af8db3c8ae0c680b --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/TechnicalInnovation/TechnicalInnovationFailureMechanismCreateExtensionsTest.cs (.../TechnicalInnovationFailureMechanismCreateExtensionsTest.cs) (revision 8e310b99d8873ca1a46282c54302acb1d1678dab) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/TechnicalInnovation/TechnicalInnovationFailureMechanismCreateExtensionsTest.cs (.../TechnicalInnovationFailureMechanismCreateExtensionsTest.cs) (revision b4e3629ea2130359117dd403af8db3c8ae0c680b) @@ -58,15 +58,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" } }; var registry = new PersistenceRegistry(); @@ -78,9 +78,9 @@ Assert.IsNotNull(entity); Assert.AreEqual((short) FailureMechanismType.TechnicalInnovations, 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); } [Test] @@ -94,15 +94,15 @@ { InputComments = { - Comments = originalInput + Body = originalInput }, OutputComments = { - Comments = originalOutput + Body = originalOutput }, NotRelevantComments = { - Comments = originalNotRelevantText + Body = originalNotRelevantText } }; var registry = new PersistenceRegistry(); @@ -113,13 +113,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]