Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/Ringtoets.Common.Data.TestUtil.Test.csproj =================================================================== diff -u -r72cdd802a67613c6e93bb92ae0b1478c5c943b0a -rb97480db064df3dd0a522a60a3552e1a2117e6d6 --- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/Ringtoets.Common.Data.TestUtil.Test.csproj (.../Ringtoets.Common.Data.TestUtil.Test.csproj) (revision 72cdd802a67613c6e93bb92ae0b1478c5c943b0a) +++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/Ringtoets.Common.Data.TestUtil.Test.csproj (.../Ringtoets.Common.Data.TestUtil.Test.csproj) (revision b97480db064df3dd0a522a60a3552e1a2117e6d6) @@ -73,6 +73,8 @@ + + Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/TestStructuresCalculationTest.cs =================================================================== diff -u --- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/TestStructuresCalculationTest.cs (revision 0) +++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/TestStructuresCalculationTest.cs (revision b97480db064df3dd0a522a60a3552e1a2117e6d6) @@ -0,0 +1,40 @@ +// Copyright (C) Stichting Deltares 2017. 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 NUnit.Framework; +using Ringtoets.Common.Data.Structures; + +namespace Ringtoets.Common.Data.TestUtil.Test +{ + [TestFixture] + public class TestStructuresCalculationTest + { + [Test] + public void Constructor_ExpectedValues() + { + // Call + var calculation = new TestStructuresCalculation(); + + // Assert + Assert.IsInstanceOf>(calculation); + } + } +} \ No newline at end of file Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/TestStructuresInputTest.cs =================================================================== diff -u --- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/TestStructuresInputTest.cs (revision 0) +++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/TestStructuresInputTest.cs (revision b97480db064df3dd0a522a60a3552e1a2117e6d6) @@ -0,0 +1,40 @@ +// Copyright (C) Stichting Deltares 2017. 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 NUnit.Framework; +using Ringtoets.Common.Data.Structures; + +namespace Ringtoets.Common.Data.TestUtil.Test +{ + [TestFixture] + public class TestStructuresInputTest + { + [Test] + public void Constructor_ExpectedValues() + { + // Call + var input = new TestStructuresInput(); + + // Assert + Assert.IsInstanceOf>(input); + } + } +} \ No newline at end of file Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/Ringtoets.Common.Data.TestUtil.csproj =================================================================== diff -u -r72cdd802a67613c6e93bb92ae0b1478c5c943b0a -rb97480db064df3dd0a522a60a3552e1a2117e6d6 --- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/Ringtoets.Common.Data.TestUtil.csproj (.../Ringtoets.Common.Data.TestUtil.csproj) (revision 72cdd802a67613c6e93bb92ae0b1478c5c943b0a) +++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/Ringtoets.Common.Data.TestUtil.csproj (.../Ringtoets.Common.Data.TestUtil.csproj) (revision b97480db064df3dd0a522a60a3552e1a2117e6d6) @@ -76,6 +76,8 @@ + + Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/TestStructuresCalculation.cs =================================================================== diff -u --- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/TestStructuresCalculation.cs (revision 0) +++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/TestStructuresCalculation.cs (revision b97480db064df3dd0a522a60a3552e1a2117e6d6) @@ -0,0 +1,30 @@ +// Copyright (C) Stichting Deltares 2017. 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 Ringtoets.Common.Data.Structures; + +namespace Ringtoets.Common.Data.TestUtil +{ + /// + /// Simple structures calculation that can be used in tests. + /// + public class TestStructuresCalculation : StructuresCalculation {} +} \ No newline at end of file Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/TestStructuresInput.cs =================================================================== diff -u --- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/TestStructuresInput.cs (revision 0) +++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/TestStructuresInput.cs (revision b97480db064df3dd0a522a60a3552e1a2117e6d6) @@ -0,0 +1,38 @@ +// Copyright (C) Stichting Deltares 2017. 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 Ringtoets.Common.Data.Structures; + +namespace Ringtoets.Common.Data.TestUtil +{ + /// + /// Simple structures input that can be used in tests. + /// + public class TestStructuresInput : StructuresInputBase + { + public override bool IsStructureInputSynchronized { get; } + public override void SynchronizeStructureInput() + { + throw new NotImplementedException(); + } + } +} Index: Ringtoets/Common/test/Ringtoets.Common.Service.TestUtil.Test/Ringtoets.Common.Service.TestUtil.Test.csproj =================================================================== diff -u -r18c1a79b0b66f21f9a0ebb055183e7fcccaac158 -rb97480db064df3dd0a522a60a3552e1a2117e6d6 --- Ringtoets/Common/test/Ringtoets.Common.Service.TestUtil.Test/Ringtoets.Common.Service.TestUtil.Test.csproj (.../Ringtoets.Common.Service.TestUtil.Test.csproj) (revision 18c1a79b0b66f21f9a0ebb055183e7fcccaac158) +++ Ringtoets/Common/test/Ringtoets.Common.Service.TestUtil.Test/Ringtoets.Common.Service.TestUtil.Test.csproj (.../Ringtoets.Common.Service.TestUtil.Test.csproj) (revision b97480db064df3dd0a522a60a3552e1a2117e6d6) @@ -51,6 +51,7 @@ + @@ -59,6 +60,18 @@ + + {d4200f43-3f72-4f42-af0a-8ced416a38ec} + Ringtoets.Common.Data + + + {D951D6DA-FE83-4920-9FDB-63BF96480B54} + Ringtoets.Common.Service + + + {4843D6E5-066F-4795-94F5-1D53932DD03C} + Ringtoets.Common.Data.TestUtil + {52093DA6-D545-476A-ADFD-12F56625E36B} Ringtoets.Common.Service.TestUtil Index: Ringtoets/Common/test/Ringtoets.Common.Service.TestUtil.Test/TestStructureValidationRulesRegistryTest.cs =================================================================== diff -u --- Ringtoets/Common/test/Ringtoets.Common.Service.TestUtil.Test/TestStructureValidationRulesRegistryTest.cs (revision 0) +++ Ringtoets/Common/test/Ringtoets.Common.Service.TestUtil.Test/TestStructureValidationRulesRegistryTest.cs (revision b97480db064df3dd0a522a60a3552e1a2117e6d6) @@ -0,0 +1,56 @@ +// Copyright (C) Stichting Deltares 2017. 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.Collections.Generic; +using NUnit.Framework; +using Ringtoets.Common.Data.TestUtil; +using Ringtoets.Common.Service.ValidationRules; + +namespace Ringtoets.Common.Service.TestUtil.Test +{ + [TestFixture] + public class TestStructureValidationRulesRegistryTest + { + [Test] + public void Constructor_ExpectedValues() + { + // Call + var registry = new TestStructureValidationRulesRegistry(); + + // Assert + Assert.IsInstanceOf>(registry); + } + + [Test] + public void GetValidationRules_Always_ReturnEmpty() + { + // Setup + var input = new TestStructuresInput(); + var registry = new TestStructureValidationRulesRegistry(); + + // Call + IEnumerable rules = registry.GetValidationRules(input); + + // Assert + CollectionAssert.IsEmpty(rules); + } + } +} \ No newline at end of file Index: Ringtoets/Common/test/Ringtoets.Common.Service.TestUtil/Ringtoets.Common.Service.TestUtil.csproj =================================================================== diff -u -r9fce5ab340c62f18944e80ce5013e788f3bb9bc6 -rb97480db064df3dd0a522a60a3552e1a2117e6d6 --- Ringtoets/Common/test/Ringtoets.Common.Service.TestUtil/Ringtoets.Common.Service.TestUtil.csproj (.../Ringtoets.Common.Service.TestUtil.csproj) (revision 9fce5ab340c62f18944e80ce5013e788f3bb9bc6) +++ Ringtoets/Common/test/Ringtoets.Common.Service.TestUtil/Ringtoets.Common.Service.TestUtil.csproj (.../Ringtoets.Common.Service.TestUtil.csproj) (revision b97480db064df3dd0a522a60a3552e1a2117e6d6) @@ -51,13 +51,28 @@ + Copying.licenseheader + + + {d4200f43-3f72-4f42-af0a-8ced416a38ec} + Ringtoets.Common.Data + + + {D951D6DA-FE83-4920-9FDB-63BF96480B54} + Ringtoets.Common.Service + + + {4843D6E5-066F-4795-94F5-1D53932DD03C} + Ringtoets.Common.Data.TestUtil + +