Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Converters/ProjectEntityConverter.cs =================================================================== diff -u -r98df6e59fb589e5326b8f904dac98d402cb35b9c -r290ba0afb9b78a0823f1fa7b4fa01c1011952df8 --- Application/Ringtoets/src/Application.Ringtoets.Storage/Converters/ProjectEntityConverter.cs (.../ProjectEntityConverter.cs) (revision 98df6e59fb589e5326b8f904dac98d402cb35b9c) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Converters/ProjectEntityConverter.cs (.../ProjectEntityConverter.cs) (revision 290ba0afb9b78a0823f1fa7b4fa01c1011952df8) @@ -74,7 +74,6 @@ } entity.ProjectEntityId = modelObject.StorageId; entity.Description = modelObject.Description; - entity.LastUpdated = (int)(DateTime.Now.ToUniversalTime() - new DateTime(1970, 1, 1)).TotalSeconds; } } } \ No newline at end of file Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/DatabaseStructure.sql =================================================================== diff -u -rd7c94e90643cacf26292824cdbef90b0cddc53ff -r290ba0afb9b78a0823f1fa7b4fa01c1011952df8 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/DatabaseStructure.sql (.../DatabaseStructure.sql) (revision d7c94e90643cacf26292824cdbef90b0cddc53ff) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/DatabaseStructure.sql (.../DatabaseStructure.sql) (revision 290ba0afb9b78a0823f1fa7b4fa01c1011952df8) @@ -1,6 +1,6 @@ /* ---------------------------------------------------- */ /* Generated by Enterprise Architect Version 12.0 */ -/* Created On : 23-Mar-2016 3:08:52 PM */ +/* Created On : 25-Mar-2016 4:01:03 PM */ /* DBMS : SQLite */ /* ---------------------------------------------------- */ @@ -38,8 +38,7 @@ CREATE TABLE 'ProjectEntity' ( 'ProjectEntityId' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, - 'Description' VARCHAR (260), - 'LastUpdated' INTEGER DEFAULT CURRENT_TIMESTAMP + 'Description' VARCHAR (260) ) ; Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ProjectEntity.cs =================================================================== diff -u -r2ae1c9433c3c28b32105b9778b682b5e512a0f00 -r290ba0afb9b78a0823f1fa7b4fa01c1011952df8 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ProjectEntity.cs (.../ProjectEntity.cs) (revision 2ae1c9433c3c28b32105b9778b682b5e512a0f00) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ProjectEntity.cs (.../ProjectEntity.cs) (revision 290ba0afb9b78a0823f1fa7b4fa01c1011952df8) @@ -43,7 +43,6 @@ public long ProjectEntityId { get; set; } public string Description { get; set; } - public Nullable LastUpdated { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection DikeAssessmentSectionEntities { get; set; } Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.edmx =================================================================== diff -u -rd7c94e90643cacf26292824cdbef90b0cddc53ff -r290ba0afb9b78a0823f1fa7b4fa01c1011952df8 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.edmx (.../RingtoetsEntities.edmx) (revision d7c94e90643cacf26292824cdbef90b0cddc53ff) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.edmx (.../RingtoetsEntities.edmx) (revision 290ba0afb9b78a0823f1fa7b4fa01c1011952df8) @@ -43,7 +43,6 @@ - @@ -208,7 +207,6 @@ - @@ -323,7 +321,6 @@ - Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.edmx.diagram =================================================================== diff -u -rd7c94e90643cacf26292824cdbef90b0cddc53ff -r290ba0afb9b78a0823f1fa7b4fa01c1011952df8 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.edmx.diagram (.../RingtoetsEntities.edmx.diagram) (revision d7c94e90643cacf26292824cdbef90b0cddc53ff) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.edmx.diagram (.../RingtoetsEntities.edmx.diagram) (revision 290ba0afb9b78a0823f1fa7b4fa01c1011952df8) @@ -6,10 +6,10 @@ - - + + - + Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Converters/ProjectEntityConverterTest.cs =================================================================== diff -u -r98df6e59fb589e5326b8f904dac98d402cb35b9c -r290ba0afb9b78a0823f1fa7b4fa01c1011952df8 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Converters/ProjectEntityConverterTest.cs (.../ProjectEntityConverterTest.cs) (revision 98df6e59fb589e5326b8f904dac98d402cb35b9c) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Converters/ProjectEntityConverterTest.cs (.../ProjectEntityConverterTest.cs) (revision 290ba0afb9b78a0823f1fa7b4fa01c1011952df8) @@ -123,18 +123,10 @@ // Call converter.ConvertModelToEntity(project, projectEntity); - var timeEnd = DateTime.Now.ToUniversalTime(); - timeStart = Round(timeStart, true); - // Assert - Assert.IsTrue(projectEntity.LastUpdated.HasValue); - var lastUpdatedDateTime = new DateTime(1970, 1, 1).AddSeconds(projectEntity.LastUpdated.Value); - Assert.AreNotEqual(projectEntity, project); Assert.AreEqual(storageId, projectEntity.ProjectEntityId); Assert.AreEqual(description, projectEntity.Description); - Assert.GreaterOrEqual(timeEnd.Ticks, lastUpdatedDateTime.Ticks); - Assert.LessOrEqual(timeStart.Ticks, lastUpdatedDateTime.Ticks); } private static DateTime Round(DateTime timeStart, bool up) Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/DbContext/ProjectEntityTest.cs =================================================================== diff -u -r4adf3910b91fba2fe6e7f7766836082046ab769a -r290ba0afb9b78a0823f1fa7b4fa01c1011952df8 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/DbContext/ProjectEntityTest.cs (.../ProjectEntityTest.cs) (revision 4adf3910b91fba2fe6e7f7766836082046ab769a) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/DbContext/ProjectEntityTest.cs (.../ProjectEntityTest.cs) (revision 290ba0afb9b78a0823f1fa7b4fa01c1011952df8) @@ -14,7 +14,6 @@ // Assert Assert.AreEqual(0, projectEntity.ProjectEntityId); - Assert.IsNull(projectEntity.LastUpdated); } [Test] @@ -29,29 +28,11 @@ { ProjectEntityId = expectedId, Description = someDescription, - LastUpdated = someTimestamp }; // Call & Assert Assert.AreEqual(someDescription, projectEntity.Description); Assert.AreEqual(expectedId, projectEntity.ProjectEntityId); - Assert.AreEqual(someTimestamp, projectEntity.LastUpdated); } - - [Test] - [TestCase(null)] - [TestCase(0L)] - [TestCase(1234L)] - public void LastUpdated_DifferentValues_ReturnExpectedValues(long? someTimestamp) - { - // Setup - var projectEntity = new ProjectEntity - { - LastUpdated = someTimestamp - }; - - // Call & Assert - Assert.AreEqual(someTimestamp, projectEntity.LastUpdated); - } } } \ No newline at end of file