Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Application.Ringtoets.Storage.csproj
===================================================================
diff -u -r765a93eb01cea4448d1dad2bbd6a4145b07b2d18 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Application.Ringtoets.Storage.csproj (.../Application.Ringtoets.Storage.csproj) (revision 765a93eb01cea4448d1dad2bbd6a4145b07b2d18)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Application.Ringtoets.Storage.csproj (.../Application.Ringtoets.Storage.csproj) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -60,7 +60,7 @@
Properties\GlobalAssembly.cs
-
+ RingtoetsEntities.tt
Fisheye: Tag 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57 refers to a dead (removed) revision in file `Application/Ringtoets/src/Application.Ringtoets.Storage/Create/GrassCoverErosionOutwards/GeneralGrassCoverErosionInwardsInputCreateExtensions.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Create/GrassCoverErosionOutwards/GeneralGrassCoverErosionOutwardsInputCreateExtensions.cs
===================================================================
diff -u
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Create/GrassCoverErosionOutwards/GeneralGrassCoverErosionOutwardsInputCreateExtensions.cs (revision 0)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Create/GrassCoverErosionOutwards/GeneralGrassCoverErosionOutwardsInputCreateExtensions.cs (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -0,0 +1,54 @@
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using Application.Ringtoets.Storage.DbContext;
+using Ringtoets.GrassCoverErosionOutwards.Data;
+
+namespace Application.Ringtoets.Storage.Create.GrassCoverErosionOutwards
+{
+ ///
+ /// Extension methods for related to creating a .
+ ///
+ internal static class GeneralGrassCoverErosionOutwardsInputCreateExtensions
+ {
+ ///
+ /// Creates a based on the information of the .
+ ///
+ /// The general failure mechanism input to create a database entity for.
+ /// The object keeping track of create operations.
+ /// A new .
+ /// Thrown when is null.
+ internal static GrassCoverErosionOutwardsFailureMechanismMetaEntity Create(this GeneralGrassCoverErosionOutwardsInput generalInput, PersistenceRegistry registry)
+ {
+ if (registry == null)
+ {
+ throw new ArgumentNullException("registry");
+ }
+
+ var entity = new GrassCoverErosionOutwardsFailureMechanismMetaEntity
+ {
+ N = generalInput.N
+ };
+ return entity;
+ }
+ }
+}
\ No newline at end of file
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/AssessmentSectionEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/AssessmentSectionEntity.cs (.../AssessmentSectionEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/AssessmentSectionEntity.cs (.../AssessmentSectionEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -30,6 +30,7 @@
namespace Application.Ringtoets.Storage.DbContext
{
+ using System;
using System.Collections.Generic;
public partial class AssessmentSectionEntity
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/CharacteristicPointEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/CharacteristicPointEntity.cs (.../CharacteristicPointEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/CharacteristicPointEntity.cs (.../CharacteristicPointEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -31,7 +31,8 @@
namespace Application.Ringtoets.Storage.DbContext
{
using System;
-
+ using System.Collections.Generic;
+
public partial class CharacteristicPointEntity
{
public long CharacteristicPointEntityId { get; set; }
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ClosingStructureSectionResultEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ClosingStructureSectionResultEntity.cs (.../ClosingStructureSectionResultEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ClosingStructureSectionResultEntity.cs (.../ClosingStructureSectionResultEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -31,7 +31,8 @@
namespace Application.Ringtoets.Storage.DbContext
{
using System;
-
+ using System.Collections.Generic;
+
public partial class ClosingStructureSectionResultEntity
{
public long ClosingStructureSectionResultEntityId { get; set; }
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/DatabaseStructure.sql
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/DatabaseStructure.sql (.../DatabaseStructure.sql) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/DatabaseStructure.sql (.../DatabaseStructure.sql) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -1,6 +1,6 @@
/* ---------------------------------------------------- */
/* Generated by Enterprise Architect Version 12.0 */
-/* Created On : 13-sep-2016 16:01:42 */
+/* Created On : 14-sep-2016 14:06:31 */
/* DBMS : SQLite */
/* ---------------------------------------------------- */
@@ -143,7 +143,7 @@
CREATE TABLE 'PipingFailureMechanismMetaEntity'
(
'PipingFailureMechanismMetaEntityId' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
- 'FailureMechanismEntityId' INTEGER,
+ 'FailureMechanismEntityId' INTEGER NOT NULL,
'A' REAL NOT NULL,
'UpliftCriticalSafetyFactor' REAL NOT NULL,
CONSTRAINT 'FK_PipingFailureMechanismMetaEntity_FailureMechanismEntity' FOREIGN KEY ('FailureMechanismEntityId') REFERENCES 'FailureMechanismEntity' ('FailureMechanismEntityId') ON DELETE Cascade ON UPDATE Cascade
@@ -293,8 +293,8 @@
CREATE TABLE 'GrassCoverErosionOutwardsFailureMechanismMetaEntity'
(
'GrassCoverErosionOutwardsFailureMechanismMetaEntityId' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
- 'FailureMechanismEntityId' INTEGER,
- 'N' TINYINT (1) NOT NULL,
+ 'FailureMechanismEntityId' INTEGER NOT NULL,
+ 'N' INT (4) NOT NULL,
CONSTRAINT 'FK_GrassCoverErosionOutwardsFailureMechanismMetaEntity_FailureMechanismEntity' FOREIGN KEY ('FailureMechanismEntityId') REFERENCES 'FailureMechanismEntity' ('FailureMechanismEntityId') ON DELETE Cascade ON UPDATE Cascade
)
;
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/DuneErosionSectionResultEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/DuneErosionSectionResultEntity.cs (.../DuneErosionSectionResultEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/DuneErosionSectionResultEntity.cs (.../DuneErosionSectionResultEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -31,7 +31,8 @@
namespace Application.Ringtoets.Storage.DbContext
{
using System;
-
+ using System.Collections.Generic;
+
public partial class DuneErosionSectionResultEntity
{
public long DuneErosionSectionResultEntityId { get; set; }
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/FailureMechanismSectionEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/FailureMechanismSectionEntity.cs (.../FailureMechanismSectionEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/FailureMechanismSectionEntity.cs (.../FailureMechanismSectionEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -30,6 +30,7 @@
namespace Application.Ringtoets.Storage.DbContext
{
+ using System;
using System.Collections.Generic;
public partial class FailureMechanismSectionEntity
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionInwardsFailureMechanismMetaEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionInwardsFailureMechanismMetaEntity.cs (.../GrassCoverErosionInwardsFailureMechanismMetaEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionInwardsFailureMechanismMetaEntity.cs (.../GrassCoverErosionInwardsFailureMechanismMetaEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -30,6 +30,9 @@
namespace Application.Ringtoets.Storage.DbContext
{
+ using System;
+ using System.Collections.Generic;
+
public partial class GrassCoverErosionInwardsFailureMechanismMetaEntity
{
public long GrassCoverErosionInwardsFailureMechanismMetaEntityId { get; set; }
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionInwardsSectionResultEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionInwardsSectionResultEntity.cs (.../GrassCoverErosionInwardsSectionResultEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionInwardsSectionResultEntity.cs (.../GrassCoverErosionInwardsSectionResultEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -31,7 +31,8 @@
namespace Application.Ringtoets.Storage.DbContext
{
using System;
-
+ using System.Collections.Generic;
+
public partial class GrassCoverErosionInwardsSectionResultEntity
{
public long GrassCoverErosionInwardsSectionResultEntityId { get; set; }
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionOutwardsFailureMechanismMetaEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionOutwardsFailureMechanismMetaEntity.cs (.../GrassCoverErosionOutwardsFailureMechanismMetaEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionOutwardsFailureMechanismMetaEntity.cs (.../GrassCoverErosionOutwardsFailureMechanismMetaEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -31,12 +31,13 @@
namespace Application.Ringtoets.Storage.DbContext
{
using System;
-
+ using System.Collections.Generic;
+
public partial class GrassCoverErosionOutwardsFailureMechanismMetaEntity
{
public long GrassCoverErosionOutwardsFailureMechanismMetaEntityId { get; set; }
- public Nullable FailureMechanismEntityId { get; set; }
- public byte N { get; set; }
+ public long FailureMechanismEntityId { get; set; }
+ public int N { get; set; }
public virtual FailureMechanismEntity FailureMechanismEntity { get; set; }
}
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionOutwardsSectionResultEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionOutwardsSectionResultEntity.cs (.../GrassCoverErosionOutwardsSectionResultEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionOutwardsSectionResultEntity.cs (.../GrassCoverErosionOutwardsSectionResultEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -31,7 +31,8 @@
namespace Application.Ringtoets.Storage.DbContext
{
using System;
-
+ using System.Collections.Generic;
+
public partial class GrassCoverErosionOutwardsSectionResultEntity
{
public long GrassCoverErosionOutwardsSectionResultEntityId { get; set; }
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverSlipOffInwardsSectionResultEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverSlipOffInwardsSectionResultEntity.cs (.../GrassCoverSlipOffInwardsSectionResultEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverSlipOffInwardsSectionResultEntity.cs (.../GrassCoverSlipOffInwardsSectionResultEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -31,7 +31,8 @@
namespace Application.Ringtoets.Storage.DbContext
{
using System;
-
+ using System.Collections.Generic;
+
public partial class GrassCoverSlipOffInwardsSectionResultEntity
{
public long GrassCoverSlipOffInwardsSectionResultEntityId { get; set; }
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverSlipOffOutwardsSectionResultEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverSlipOffOutwardsSectionResultEntity.cs (.../GrassCoverSlipOffOutwardsSectionResultEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverSlipOffOutwardsSectionResultEntity.cs (.../GrassCoverSlipOffOutwardsSectionResultEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -31,7 +31,8 @@
namespace Application.Ringtoets.Storage.DbContext
{
using System;
-
+ using System.Collections.Generic;
+
public partial class GrassCoverSlipOffOutwardsSectionResultEntity
{
public long GrassCoverSlipOffOutwardsSectionResultEntityId { get; set; }
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/HeightStructuresSectionResultEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/HeightStructuresSectionResultEntity.cs (.../HeightStructuresSectionResultEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/HeightStructuresSectionResultEntity.cs (.../HeightStructuresSectionResultEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -31,7 +31,8 @@
namespace Application.Ringtoets.Storage.DbContext
{
using System;
-
+ using System.Collections.Generic;
+
public partial class HeightStructuresSectionResultEntity
{
public long HeightStructuresSectionResultEntityId { get; set; }
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/MacrostabilityInwardsSectionResultEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/MacrostabilityInwardsSectionResultEntity.cs (.../MacrostabilityInwardsSectionResultEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/MacrostabilityInwardsSectionResultEntity.cs (.../MacrostabilityInwardsSectionResultEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -31,7 +31,8 @@
namespace Application.Ringtoets.Storage.DbContext
{
using System;
-
+ using System.Collections.Generic;
+
public partial class MacrostabilityInwardsSectionResultEntity
{
public long MacrostabilityInwardsSectionResultEntityId { get; set; }
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/MacrostabilityOutwardsSectionResultEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/MacrostabilityOutwardsSectionResultEntity.cs (.../MacrostabilityOutwardsSectionResultEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/MacrostabilityOutwardsSectionResultEntity.cs (.../MacrostabilityOutwardsSectionResultEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -31,7 +31,8 @@
namespace Application.Ringtoets.Storage.DbContext
{
using System;
-
+ using System.Collections.Generic;
+
public partial class MacrostabilityOutwardsSectionResultEntity
{
public long MacrostabilityOutwardsSectionResultEntityId { get; set; }
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/MicrostabilitySectionResultEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/MicrostabilitySectionResultEntity.cs (.../MicrostabilitySectionResultEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/MicrostabilitySectionResultEntity.cs (.../MicrostabilitySectionResultEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -31,7 +31,8 @@
namespace Application.Ringtoets.Storage.DbContext
{
using System;
-
+ using System.Collections.Generic;
+
public partial class MicrostabilitySectionResultEntity
{
public long MicrostabilitySectionResultEntityId { get; set; }
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingCalculationEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingCalculationEntity.cs (.../PipingCalculationEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingCalculationEntity.cs (.../PipingCalculationEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -31,7 +31,8 @@
namespace Application.Ringtoets.Storage.DbContext
{
using System;
-
+ using System.Collections.Generic;
+
public partial class PipingCalculationEntity
{
public long PipingCalculationEntityId { get; set; }
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingFailureMechanismMetaEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingFailureMechanismMetaEntity.cs (.../PipingFailureMechanismMetaEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingFailureMechanismMetaEntity.cs (.../PipingFailureMechanismMetaEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -31,11 +31,12 @@
namespace Application.Ringtoets.Storage.DbContext
{
using System;
-
+ using System.Collections.Generic;
+
public partial class PipingFailureMechanismMetaEntity
{
public long PipingFailureMechanismMetaEntityId { get; set; }
- public Nullable FailureMechanismEntityId { get; set; }
+ public long FailureMechanismEntityId { get; set; }
public double A { get; set; }
public double UpliftCriticalSafetyFactor { get; set; }
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingSectionResultEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingSectionResultEntity.cs (.../PipingSectionResultEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingSectionResultEntity.cs (.../PipingSectionResultEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -31,7 +31,8 @@
namespace Application.Ringtoets.Storage.DbContext
{
using System;
-
+ using System.Collections.Generic;
+
public partial class PipingSectionResultEntity
{
public long PipingSectionResultEntityId { get; set; }
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingStructureSectionResultEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingStructureSectionResultEntity.cs (.../PipingStructureSectionResultEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingStructureSectionResultEntity.cs (.../PipingStructureSectionResultEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -31,7 +31,8 @@
namespace Application.Ringtoets.Storage.DbContext
{
using System;
-
+ using System.Collections.Generic;
+
public partial class PipingStructureSectionResultEntity
{
public long PipingStructureSectionResultEntityId { get; set; }
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ProjectEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ProjectEntity.cs (.../ProjectEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ProjectEntity.cs (.../ProjectEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -30,6 +30,7 @@
namespace Application.Ringtoets.Storage.DbContext
{
+ using System;
using System.Collections.Generic;
public partial class ProjectEntity
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.Context.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.Context.cs (.../RingtoetsEntities.Context.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.Context.cs (.../RingtoetsEntities.Context.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -30,6 +30,7 @@
namespace Application.Ringtoets.Storage.DbContext
{
+ using System;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.edmx
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.edmx (.../RingtoetsEntities.edmx) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.edmx (.../RingtoetsEntities.edmx) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -155,8 +155,8 @@
-
-
+
+
@@ -283,7 +283,7 @@
-
+
@@ -672,7 +672,7 @@
-
+
@@ -852,7 +852,7 @@
-
+
@@ -1678,8 +1678,8 @@
-
-
+
+
@@ -1824,7 +1824,7 @@
-
+
@@ -2200,7 +2200,7 @@
-
+
@@ -2212,7 +2212,7 @@
-
+
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.edmx.diagram
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.edmx.diagram (.../RingtoetsEntities.edmx.diagram) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.edmx.diagram (.../RingtoetsEntities.edmx.diagram) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -7,45 +7,45 @@
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
+
+
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/SoilLayerEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/SoilLayerEntity.cs (.../SoilLayerEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/SoilLayerEntity.cs (.../SoilLayerEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -31,7 +31,8 @@
namespace Application.Ringtoets.Storage.DbContext
{
using System;
-
+ using System.Collections.Generic;
+
public partial class SoilLayerEntity
{
public long SoilLayerEntityId { get; set; }
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityStoneCoverSectionResultEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityStoneCoverSectionResultEntity.cs (.../StabilityStoneCoverSectionResultEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityStoneCoverSectionResultEntity.cs (.../StabilityStoneCoverSectionResultEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -31,7 +31,8 @@
namespace Application.Ringtoets.Storage.DbContext
{
using System;
-
+ using System.Collections.Generic;
+
public partial class StabilityStoneCoverSectionResultEntity
{
public long StabilityStoneCoverSectionResultEntityId { get; set; }
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StochasticSoilModelEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StochasticSoilModelEntity.cs (.../StochasticSoilModelEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StochasticSoilModelEntity.cs (.../StochasticSoilModelEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -30,6 +30,7 @@
namespace Application.Ringtoets.Storage.DbContext
{
+ using System;
using System.Collections.Generic;
public partial class StochasticSoilModelEntity
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StrengthStabilityLengthwiseConstructionSectionResultEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StrengthStabilityLengthwiseConstructionSectionResultEntity.cs (.../StrengthStabilityLengthwiseConstructionSectionResultEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StrengthStabilityLengthwiseConstructionSectionResultEntity.cs (.../StrengthStabilityLengthwiseConstructionSectionResultEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -31,7 +31,8 @@
namespace Application.Ringtoets.Storage.DbContext
{
using System;
-
+ using System.Collections.Generic;
+
public partial class StrengthStabilityLengthwiseConstructionSectionResultEntity
{
public long StrengthStabilityLengthwiseConstructionSectionResultEntityId { get; set; }
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StrengthStabilityPointConstructionSectionResultEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StrengthStabilityPointConstructionSectionResultEntity.cs (.../StrengthStabilityPointConstructionSectionResultEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StrengthStabilityPointConstructionSectionResultEntity.cs (.../StrengthStabilityPointConstructionSectionResultEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -31,7 +31,8 @@
namespace Application.Ringtoets.Storage.DbContext
{
using System;
-
+ using System.Collections.Generic;
+
public partial class StrengthStabilityPointConstructionSectionResultEntity
{
public long StrengthStabilityPointConstructionSectionResultEntityId { get; set; }
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/TechnicalInnovationSectionResultEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/TechnicalInnovationSectionResultEntity.cs (.../TechnicalInnovationSectionResultEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/TechnicalInnovationSectionResultEntity.cs (.../TechnicalInnovationSectionResultEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -31,7 +31,8 @@
namespace Application.Ringtoets.Storage.DbContext
{
using System;
-
+ using System.Collections.Generic;
+
public partial class TechnicalInnovationSectionResultEntity
{
public long TechnicalInnovationSectionResultEntityId { get; set; }
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/VersionEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/VersionEntity.cs (.../VersionEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/VersionEntity.cs (.../VersionEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -30,6 +30,9 @@
namespace Application.Ringtoets.Storage.DbContext
{
+ using System;
+ using System.Collections.Generic;
+
public partial class VersionEntity
{
public long VersionId { get; set; }
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/WaterPressureAsphaltCoverSectionResultEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/WaterPressureAsphaltCoverSectionResultEntity.cs (.../WaterPressureAsphaltCoverSectionResultEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/WaterPressureAsphaltCoverSectionResultEntity.cs (.../WaterPressureAsphaltCoverSectionResultEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -31,7 +31,8 @@
namespace Application.Ringtoets.Storage.DbContext
{
using System;
-
+ using System.Collections.Generic;
+
public partial class WaterPressureAsphaltCoverSectionResultEntity
{
public long WaterPressureAsphaltCoverSectionResultEntityId { get; set; }
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/WaveImpactAsphaltCoverSectionResultEntity.cs
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/WaveImpactAsphaltCoverSectionResultEntity.cs (.../WaveImpactAsphaltCoverSectionResultEntity.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/WaveImpactAsphaltCoverSectionResultEntity.cs (.../WaveImpactAsphaltCoverSectionResultEntity.cs) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -31,7 +31,8 @@
namespace Application.Ringtoets.Storage.DbContext
{
using System;
-
+ using System.Collections.Generic;
+
public partial class WaveImpactAsphaltCoverSectionResultEntity
{
public long WaveImpactAsphaltCoverSectionResultEntityId { get; set; }
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Application.Ringtoets.Storage.Test.csproj
===================================================================
diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Application.Ringtoets.Storage.Test.csproj (.../Application.Ringtoets.Storage.Test.csproj) (revision 11f0867b39150ae5fac83dc178a89fee46d27611)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Application.Ringtoets.Storage.Test.csproj (.../Application.Ringtoets.Storage.Test.csproj) (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -76,7 +76,8 @@
Properties\GlobalAssembly.cs
-
+
+
@@ -166,7 +167,7 @@
-
+
Fisheye: Tag 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57 refers to a dead (removed) revision in file `Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverErosionOutwards/GeneralGrassCoverErosionInwardsInputCreateExtensionsTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverErosionOutwards/GeneralGrassCoverErosionOutwardsOutputCreateExtensionsTest.cs
===================================================================
diff -u
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverErosionOutwards/GeneralGrassCoverErosionOutwardsOutputCreateExtensionsTest.cs (revision 0)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverErosionOutwards/GeneralGrassCoverErosionOutwardsOutputCreateExtensionsTest.cs (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -0,0 +1,66 @@
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using Application.Ringtoets.Storage.Create;
+using Application.Ringtoets.Storage.Create.GrassCoverErosionOutwards;
+using Application.Ringtoets.Storage.DbContext;
+using NUnit.Framework;
+using Ringtoets.GrassCoverErosionOutwards.Data;
+
+namespace Application.Ringtoets.Storage.Test.Create.GrassCoverErosionOutwards
+{
+ [TestFixture]
+ public class GeneralGrassCoverErosionOutwardsOutputCreateExtensionsTest
+ {
+ [Test]
+ public void Create_PersistenceRegistryNull_ThrowArgumentNullException()
+ {
+ // Setup
+ var input = new GeneralGrassCoverErosionOutwardsInput();
+
+ // Call
+ TestDelegate call = () => input.Create(null);
+
+ // Assert
+ string paramName = Assert.Throws(call).ParamName;
+ Assert.AreEqual("registry", paramName);
+ }
+
+ [Test]
+ public void Create_ValidGeneralInput_ReturnEntity()
+ {
+ // Setup
+ var n = new Random(21).Next(0, 20);
+ var input = new GeneralGrassCoverErosionOutwardsInput
+ {
+ N = n
+ };
+ var registry = new PersistenceRegistry();
+
+ // Call
+ GrassCoverErosionOutwardsFailureMechanismMetaEntity entity = input.Create(registry);
+
+ // Assert
+ Assert.AreEqual(n, entity.N);
+ }
+ }
+}
\ No newline at end of file
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/GrassCoverErosionOutwards/GrassCoverErosionOutwardsFailureMechanismMetaEntityReadExtensionsTest.cs
===================================================================
diff -u
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/GrassCoverErosionOutwards/GrassCoverErosionOutwardsFailureMechanismMetaEntityReadExtensionsTest.cs (revision 0)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/GrassCoverErosionOutwards/GrassCoverErosionOutwardsFailureMechanismMetaEntityReadExtensionsTest.cs (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -0,0 +1,67 @@
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using Application.Ringtoets.Storage.DbContext;
+using Application.Ringtoets.Storage.Read.GrassCoverErosionOutwards;
+using NUnit.Framework;
+using Ringtoets.GrassCoverErosionOutwards.Data;
+
+namespace Application.Ringtoets.Storage.Test.Read.GrassCoverErosionOutwards
+{
+ [TestFixture]
+ public class GrassCoverErosionOutwardsFailureMechanismMetaEntityReadExtensionsTest
+ {
+ [Test]
+ public void Read_GeneralInputIsNull_ThrowArgumentNullException()
+ {
+ // Setup
+ var entity = new GrassCoverErosionOutwardsFailureMechanismMetaEntity();
+
+ // Call
+ TestDelegate call = () => entity.Read(null);
+
+ // Assert
+ string paramName = Assert.Throws(call).ParamName;
+ Assert.AreEqual("input", paramName);
+ }
+
+ [Test]
+ public void Read_ValidEntity_ReturnGeneralGrassCoverErosionOutwardsInput()
+ {
+ // Setup
+ var random = new Random(21);
+ var n = random.Next(1, 20);
+
+ var entity = new GrassCoverErosionOutwardsFailureMechanismMetaEntity
+ {
+ N = n
+ };
+ var inputToUpdate = new GeneralGrassCoverErosionOutwardsInput();
+
+ // Call
+ entity.Read(inputToUpdate);
+
+ // Assert
+ Assert.AreEqual(n, inputToUpdate.N);
+ }
+ }
+}
\ No newline at end of file
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/GrassCoverErosionOutwards/GrassCoverErosionOutwardsSectionResultEntityReadExtensionsTest.cs
===================================================================
diff -u
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/GrassCoverErosionOutwards/GrassCoverErosionOutwardsSectionResultEntityReadExtensionsTest.cs (revision 0)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/GrassCoverErosionOutwards/GrassCoverErosionOutwardsSectionResultEntityReadExtensionsTest.cs (revision 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57)
@@ -0,0 +1,107 @@
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using Application.Ringtoets.Storage.DbContext;
+using Application.Ringtoets.Storage.Read;
+using Application.Ringtoets.Storage.TestUtil;
+using NUnit.Framework;
+using Ringtoets.Common.Data.FailureMechanism;
+using Ringtoets.GrassCoverErosionOutwards.Data;
+
+namespace Application.Ringtoets.Storage.Test.Read.GrassCoverErosionOutwards
+{
+ [TestFixture]
+ public class GrassCoverErosionOutwardsSectionResultEntityReadExtensionsTest
+ {
+ [Test]
+ public void Read_SectionResultIsNull_ThrowArgumentNullException()
+ {
+ // Setup
+ var entity = new GrassCoverErosionOutwardsSectionResultEntity();
+
+ // Call
+ TestDelegate call = () => entity.Read(null);
+
+ // Assert
+ string paramName = Assert.Throws(call).ParamName;
+ Assert.AreEqual("sectionResult", paramName);
+ }
+
+ [Test]
+ [TestCase(true, AssessmentLayerTwoAResult.Failed)]
+ [TestCase(false, AssessmentLayerTwoAResult.Successful)]
+ [TestCase(false, AssessmentLayerTwoAResult.Failed)]
+ public void Read_WithDecimalParameterValues_ReturnGrassCoverErosionOutwardsSectionResultWithDoubleParameterValues(bool layerOne, AssessmentLayerTwoAResult layerTwoA)
+ {
+ // Setup
+ var random = new Random(21);
+ double layerThree = random.NextDouble();
+ var collector = new ReadConversionCollector();
+
+ var failureMechanismSectionEntity = new FailureMechanismSectionEntity();
+ collector.Read(failureMechanismSectionEntity, new TestFailureMechanismSection());
+ var entity = new GrassCoverErosionOutwardsSectionResultEntity
+ {
+ LayerThree = layerThree,
+ LayerTwoA = Convert.ToByte(layerTwoA),
+ LayerOne = Convert.ToByte(layerOne),
+ FailureMechanismSectionEntity = failureMechanismSectionEntity
+ };
+ var sectionResult = new GrassCoverErosionOutwardsFailureMechanismSectionResult(new TestFailureMechanismSection());
+
+ // Call
+ entity.Read(sectionResult);
+
+ // Assert
+ Assert.IsNotNull(sectionResult);
+ Assert.AreEqual(layerOne, sectionResult.AssessmentLayerOne);
+ Assert.AreEqual(layerTwoA, sectionResult.AssessmentLayerTwoA);
+ Assert.AreEqual(layerThree, sectionResult.AssessmentLayerThree, 1e-6);
+ }
+
+ [Test]
+ [TestCase(true, AssessmentLayerTwoAResult.Failed)]
+ [TestCase(false, AssessmentLayerTwoAResult.Successful)]
+ [TestCase(false, AssessmentLayerTwoAResult.Failed)]
+ public void Read_WithNullLayerThree_ReturnGrassCoverErosionOutwardsSectionResultWithNullParameters(bool layerOne, AssessmentLayerTwoAResult layerTwoA)
+ {
+ // Setup
+ var collector = new ReadConversionCollector();
+ var failureMechanismSectionEntity = new FailureMechanismSectionEntity();
+ collector.Read(failureMechanismSectionEntity, new TestFailureMechanismSection());
+ var entity = new GrassCoverErosionOutwardsSectionResultEntity
+ {
+ LayerOne = Convert.ToByte(layerOne),
+ LayerTwoA = Convert.ToByte(layerTwoA),
+ LayerThree = null,
+ FailureMechanismSectionEntity = failureMechanismSectionEntity
+ };
+ var sectionResult = new GrassCoverErosionOutwardsFailureMechanismSectionResult(new TestFailureMechanismSection());
+
+ // Call
+ entity.Read(sectionResult);
+
+ // Assert
+ Assert.IsNaN(sectionResult.AssessmentLayerThree);
+ }
+ }
+}
\ No newline at end of file
Fisheye: Tag 741fcc00e47a7ff8fa01bbf15edbaedf8dec2e57 refers to a dead (removed) revision in file `Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/GrassCoverErosionOutwardsSectionResultEntityReadExtensionsTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?