Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/ClosingStructures/ClosingStructureEntityReadExtensionsTest.cs =================================================================== diff -u -rac5da35861aeeaaab57c029d1dc7f6ed47013d25 -re440a0fe415d87b898ae1b6ad2e4ba98d0f104cf --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/ClosingStructures/ClosingStructureEntityReadExtensionsTest.cs (.../ClosingStructureEntityReadExtensionsTest.cs) (revision ac5da35861aeeaaab57c029d1dc7f6ed47013d25) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/ClosingStructures/ClosingStructureEntityReadExtensionsTest.cs (.../ClosingStructureEntityReadExtensionsTest.cs) (revision e440a0fe415d87b898ae1b6ad2e4ba98d0f104cf) @@ -47,6 +47,29 @@ } [Test] + public void Read_EntityNotReadBefore_RegisterEntity() + { + // Setup + var entity = new ClosingStructureEntity + { + Name = "name", + Id = "id" + }; + + var collector = new ReadConversionCollector(); + + // Precondition + Assert.IsFalse(collector.Contains(entity)); + + // Call + ClosingStructure calculation = entity.Read(collector); + + // Assert + Assert.IsTrue(collector.Contains(entity)); + Assert.AreSame(calculation, collector.Get(entity)); + } + + [Test] public void Read_ValidEntity_ReturnClosingStructure() { // Setup