Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/WaveImpactAsphaltCover/WaveImpactAsphaltCoverFailureMechanismCreateExtensionsTest.cs =================================================================== diff -u -red4b032b9903f394deb9691c2c39a9f2122ab0f5 -rc9cee4b6d3ce28471a0054fa2bce21ce9e4c60f8 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/WaveImpactAsphaltCover/WaveImpactAsphaltCoverFailureMechanismCreateExtensionsTest.cs (.../WaveImpactAsphaltCoverFailureMechanismCreateExtensionsTest.cs) (revision ed4b032b9903f394deb9691c2c39a9f2122ab0f5) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/WaveImpactAsphaltCover/WaveImpactAsphaltCoverFailureMechanismCreateExtensionsTest.cs (.../WaveImpactAsphaltCoverFailureMechanismCreateExtensionsTest.cs) (revision c9cee4b6d3ce28471a0054fa2bce21ce9e4c60f8) @@ -163,24 +163,34 @@ // Assert Assert.IsEmpty(entity.ForeshoreProfileEntities); + + WaveImpactAsphaltCoverFailureMechanismMetaEntity metaEntity = + entity.WaveImpactAsphaltCoverFailureMechanismMetaEntities.Single(); + Assert.IsNull(metaEntity.ForeshoreProfileCollectionSourcePath); } [Test] public void Create_WithForeshoreProfiles_ForeshoreProfilesEntitiesCreated() { // Setup - // TODO: WTI-1112: Add path location as part of storage var failureMechanism = new WaveImpactAsphaltCoverFailureMechanism(); + const string filePath = "some/path/to/foreshoreProfiles"; failureMechanism.ForeshoreProfiles.AddRange(new[] { new TestForeshoreProfile() - }, "path"); + }, filePath); // Call FailureMechanismEntity entity = failureMechanism.Create(new PersistenceRegistry()); // Assert Assert.AreEqual(1, entity.ForeshoreProfileEntities.Count); + + WaveImpactAsphaltCoverFailureMechanismMetaEntity metaEntity = + entity.WaveImpactAsphaltCoverFailureMechanismMetaEntities.Single(); + string metaEntityForeshoreProfileCollectionSourcePath = metaEntity.ForeshoreProfileCollectionSourcePath; + Assert.AreNotSame(filePath, metaEntityForeshoreProfileCollectionSourcePath); + Assert.AreEqual(filePath, metaEntityForeshoreProfileCollectionSourcePath); } [Test]