Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Update/HydraulicBoundaryLocationUpdateExtensionsTest.cs =================================================================== diff -u -ra294987551b0b2d8a27b6e1bc6235b0e2351b6f4 -r61ced0f990b10b560e2d5700b5851cdb188585db --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Update/HydraulicBoundaryLocationUpdateExtensionsTest.cs (.../HydraulicBoundaryLocationUpdateExtensionsTest.cs) (revision a294987551b0b2d8a27b6e1bc6235b0e2351b6f4) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Update/HydraulicBoundaryLocationUpdateExtensionsTest.cs (.../HydraulicBoundaryLocationUpdateExtensionsTest.cs) (revision 61ced0f990b10b560e2d5700b5851cdb188585db) @@ -20,7 +20,6 @@ // All rights reserved. using System; - using Application.Ringtoets.Storage.Create; using Application.Ringtoets.Storage.DbContext; using Application.Ringtoets.Storage.Exceptions; @@ -36,7 +35,7 @@ public class HydraulicBoundaryLocationUpdateExtensionsTest { [Test] - public void Update_WithoutContext_ArgumentNullException() + public void Update_WithoutContext_ThrowsArgumentNullException() { // Setup var hydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(); @@ -50,7 +49,7 @@ } [Test] - public void Update_WithoutPersistenceRegistry_ArgumentNullException() + public void Update_WithoutPersistenceRegistry_ThrowsArgumentNullException() { // Setup var hydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(); @@ -70,7 +69,7 @@ } [Test] - public void Update_ContextWithNoHydraulicBoundaryLocation_EntityNotFoundException() + public void Update_ContextWithNoHydraulicBoundaryLocation_ThrowsEntityNotFoundException() { // Setup var hydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(); @@ -91,7 +90,7 @@ } [Test] - public void Update_ContextWithNoNoHydraulicBoundaryLocationWithId_EntityNotFoundException() + public void Update_ContextWithNoNoHydraulicBoundaryLocationWithId_ThrowsEntityNotFoundException() { // Setup MockRepository mocks = new MockRepository(); @@ -136,17 +135,20 @@ long newId = 2; string newName = "newName"; double newDesignWaterLevel = random.NextDouble() * 10; + double newWaveHeight = random.NextDouble() * 10; var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(newId, newName, newX, newY) { StorageId = 1, - DesignWaterLevel = newDesignWaterLevel + DesignWaterLevel = newDesignWaterLevel, + WaveHeight = newWaveHeight }; var hydraulicLocationEntity = new HydraulicLocationEntity { HydraulicLocationEntityId = 1, DesignWaterLevel = 10, + WaveHeight = 10, LocationId = 2, LocationX = -3.2, LocationY = -3.5 @@ -163,6 +165,7 @@ Assert.AreEqual(newX, hydraulicLocationEntity.LocationX, 1e-6); Assert.AreEqual(newY, hydraulicLocationEntity.LocationY, 1e-6); Assert.AreEqual(newDesignWaterLevel, hydraulicLocationEntity.DesignWaterLevel, 1e-6); + Assert.AreEqual(newWaveHeight, hydraulicLocationEntity.WaveHeight, 1e-6); mocks.VerifyAll(); }