Index: Application/Application.Ringtoets/App.xaml.cs =================================================================== diff -u -r79b1cdcf9dcdbe4c015f5fc6b42605a00386b120 -raa5c3620f316831e71797c558a13a0b73a8109df --- Application/Application.Ringtoets/App.xaml.cs (.../App.xaml.cs) (revision 79b1cdcf9dcdbe4c015f5fc6b42605a00386b120) +++ Application/Application.Ringtoets/App.xaml.cs (.../App.xaml.cs) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -23,9 +23,10 @@ using log4net; using NDesk.Options; +using Ringtoets.Integration.Plugin; using Ringtoets.Piping.Plugin; -using MessageBox = System.Windows.MessageBox; +using MessageBox = System.Windows.MessageBox; #if INCLUDE_DEMOPROJECT using Ringtoets.Demo; #endif Index: Application/Application.Ringtoets/Application.Ringtoets.csproj =================================================================== diff -u -r79b1cdcf9dcdbe4c015f5fc6b42605a00386b120 -raa5c3620f316831e71797c558a13a0b73a8109df --- Application/Application.Ringtoets/Application.Ringtoets.csproj (.../Application.Ringtoets.csproj) (revision 79b1cdcf9dcdbe4c015f5fc6b42605a00386b120) +++ Application/Application.Ringtoets/Application.Ringtoets.csproj (.../Application.Ringtoets.csproj) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -159,6 +159,10 @@ {ffe3a667-3a4c-4f48-bc6b-1589867fcb41} Ringtoets.Demo + + {c8383b76-b3f1-4e6e-b56c-527b469fa20a} + Ringtoets.Integration.Plugin + {1D3D58B6-EF7E-401E-92A0-104067D222EE} Ringtoets.Piping.Plugin Index: Ringtoets.sln =================================================================== diff -u -r7ded49d5730cf90fed55129fe811ea09cb0fa757 -raa5c3620f316831e71797c558a13a0b73a8109df --- Ringtoets.sln (.../Ringtoets.sln) (revision 7ded49d5730cf90fed55129fe811ea09cb0fa757) +++ Ringtoets.sln (.../Ringtoets.sln) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -190,6 +190,18 @@ EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ringtoets.Integration.Data.Test", "Ringtoets\Integration\test\Ringtoets.Integration.Data.Test\Ringtoets.Integration.Data.Test.csproj", "{16F1694E-1237-4B03-B34E-70E6871898FE}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ringtoets.Integration.Plugin", "Ringtoets\Integration\src\Ringtoets.Integration.Plugin\Ringtoets.Integration.Plugin.csproj", "{C8383B76-B3F1-4E6E-B56C-527B469FA20A}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ringtoets.Integration.Plugin.Test", "Ringtoets\Integration\test\Ringtoets.Integration.Plugin.Test\Ringtoets.Integration.Plugin.Test.csproj", "{15E7B9D9-A177-42AE-8BC7-91B6DFBAB0EC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ringtoets.Integration.Forms", "Ringtoets\Integration\src\Ringtoets.Integration.Forms\Ringtoets.Integration.Forms.csproj", "{AD0CDC89-0A00-4068-AEEC-9838863C2FE8}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ringtoets.Common.Forms", "Ringtoets\Common\src\Ringtoets.Common.Forms\Ringtoets.Common.Forms.csproj", "{4D840673-3812-4338-A352-84854E32B8A0}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ringtoets.Integration.Forms.Test", "Ringtoets\Integration\test\Ringtoets.Integration.Forms.Test\Ringtoets.Integration.Forms.Test.csproj", "{96C8FDAE-9F59-4D2F-A66E-BE512BB5EECB}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ringtoets.Common.Forms.Test", "Ringtoets\Common\test\Ringtoets.Common.Forms.Test\Ringtoets.Common.Forms.Test.csproj", "{886FDBE5-7065-4AB9-A894-869DBFD4E440}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution CreateInstaller|Any CPU = CreateInstaller|Any CPU @@ -1423,6 +1435,144 @@ {16F1694E-1237-4B03-B34E-70E6871898FE}.Release|Mixed Platforms.Build.0 = Release|Any CPU {16F1694E-1237-4B03-B34E-70E6871898FE}.Release|x86.ActiveCfg = Release|x86 {16F1694E-1237-4B03-B34E-70E6871898FE}.Release|x86.Build.0 = Release|x86 + {C8383B76-B3F1-4E6E-B56C-527B469FA20A}.CreateInstaller|Any CPU.ActiveCfg = Release|Any CPU + {C8383B76-B3F1-4E6E-B56C-527B469FA20A}.CreateInstaller|Any CPU.Build.0 = Release|Any CPU + {C8383B76-B3F1-4E6E-B56C-527B469FA20A}.CreateInstaller|Mixed Platforms.ActiveCfg = Release|Any CPU + {C8383B76-B3F1-4E6E-B56C-527B469FA20A}.CreateInstaller|Mixed Platforms.Build.0 = Release|Any CPU + {C8383B76-B3F1-4E6E-B56C-527B469FA20A}.CreateInstaller|x86.ActiveCfg = Release|x86 + {C8383B76-B3F1-4E6E-B56C-527B469FA20A}.CreateInstaller|x86.Build.0 = Release|x86 + {C8383B76-B3F1-4E6E-B56C-527B469FA20A}.CreateInstallerWithDemoProject|Any CPU.ActiveCfg = Release|Any CPU + {C8383B76-B3F1-4E6E-B56C-527B469FA20A}.CreateInstallerWithDemoProject|Any CPU.Build.0 = Release|Any CPU + {C8383B76-B3F1-4E6E-B56C-527B469FA20A}.CreateInstallerWithDemoProject|Mixed Platforms.ActiveCfg = Release|Any CPU + {C8383B76-B3F1-4E6E-B56C-527B469FA20A}.CreateInstallerWithDemoProject|Mixed Platforms.Build.0 = Release|Any CPU + {C8383B76-B3F1-4E6E-B56C-527B469FA20A}.CreateInstallerWithDemoProject|x86.ActiveCfg = CreateInstallerWithDemoProject|x86 + {C8383B76-B3F1-4E6E-B56C-527B469FA20A}.CreateInstallerWithDemoProject|x86.Build.0 = CreateInstallerWithDemoProject|x86 + {C8383B76-B3F1-4E6E-B56C-527B469FA20A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C8383B76-B3F1-4E6E-B56C-527B469FA20A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C8383B76-B3F1-4E6E-B56C-527B469FA20A}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {C8383B76-B3F1-4E6E-B56C-527B469FA20A}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {C8383B76-B3F1-4E6E-B56C-527B469FA20A}.Debug|x86.ActiveCfg = Debug|x86 + {C8383B76-B3F1-4E6E-B56C-527B469FA20A}.Debug|x86.Build.0 = Debug|x86 + {C8383B76-B3F1-4E6E-B56C-527B469FA20A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C8383B76-B3F1-4E6E-B56C-527B469FA20A}.Release|Any CPU.Build.0 = Release|Any CPU + {C8383B76-B3F1-4E6E-B56C-527B469FA20A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {C8383B76-B3F1-4E6E-B56C-527B469FA20A}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {C8383B76-B3F1-4E6E-B56C-527B469FA20A}.Release|x86.ActiveCfg = Release|x86 + {C8383B76-B3F1-4E6E-B56C-527B469FA20A}.Release|x86.Build.0 = Release|x86 + {15E7B9D9-A177-42AE-8BC7-91B6DFBAB0EC}.CreateInstaller|Any CPU.ActiveCfg = Release|Any CPU + {15E7B9D9-A177-42AE-8BC7-91B6DFBAB0EC}.CreateInstaller|Any CPU.Build.0 = Release|Any CPU + {15E7B9D9-A177-42AE-8BC7-91B6DFBAB0EC}.CreateInstaller|Mixed Platforms.ActiveCfg = Release|Any CPU + {15E7B9D9-A177-42AE-8BC7-91B6DFBAB0EC}.CreateInstaller|Mixed Platforms.Build.0 = Release|Any CPU + {15E7B9D9-A177-42AE-8BC7-91B6DFBAB0EC}.CreateInstaller|x86.ActiveCfg = Release|x86 + {15E7B9D9-A177-42AE-8BC7-91B6DFBAB0EC}.CreateInstallerWithDemoProject|Any CPU.ActiveCfg = Release|Any CPU + {15E7B9D9-A177-42AE-8BC7-91B6DFBAB0EC}.CreateInstallerWithDemoProject|Any CPU.Build.0 = Release|Any CPU + {15E7B9D9-A177-42AE-8BC7-91B6DFBAB0EC}.CreateInstallerWithDemoProject|Mixed Platforms.ActiveCfg = Release|Any CPU + {15E7B9D9-A177-42AE-8BC7-91B6DFBAB0EC}.CreateInstallerWithDemoProject|Mixed Platforms.Build.0 = Release|Any CPU + {15E7B9D9-A177-42AE-8BC7-91B6DFBAB0EC}.CreateInstallerWithDemoProject|x86.ActiveCfg = CreateInstallerWithDemoProject|x86 + {15E7B9D9-A177-42AE-8BC7-91B6DFBAB0EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {15E7B9D9-A177-42AE-8BC7-91B6DFBAB0EC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {15E7B9D9-A177-42AE-8BC7-91B6DFBAB0EC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {15E7B9D9-A177-42AE-8BC7-91B6DFBAB0EC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {15E7B9D9-A177-42AE-8BC7-91B6DFBAB0EC}.Debug|x86.ActiveCfg = Debug|x86 + {15E7B9D9-A177-42AE-8BC7-91B6DFBAB0EC}.Debug|x86.Build.0 = Debug|x86 + {15E7B9D9-A177-42AE-8BC7-91B6DFBAB0EC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {15E7B9D9-A177-42AE-8BC7-91B6DFBAB0EC}.Release|Any CPU.Build.0 = Release|Any CPU + {15E7B9D9-A177-42AE-8BC7-91B6DFBAB0EC}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {15E7B9D9-A177-42AE-8BC7-91B6DFBAB0EC}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {15E7B9D9-A177-42AE-8BC7-91B6DFBAB0EC}.Release|x86.ActiveCfg = Release|x86 + {15E7B9D9-A177-42AE-8BC7-91B6DFBAB0EC}.Release|x86.Build.0 = Release|x86 + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8}.CreateInstaller|Any CPU.ActiveCfg = Release|Any CPU + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8}.CreateInstaller|Any CPU.Build.0 = Release|Any CPU + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8}.CreateInstaller|Mixed Platforms.ActiveCfg = Release|Any CPU + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8}.CreateInstaller|Mixed Platforms.Build.0 = Release|Any CPU + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8}.CreateInstaller|x86.ActiveCfg = Release|x86 + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8}.CreateInstaller|x86.Build.0 = Release|x86 + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8}.CreateInstallerWithDemoProject|Any CPU.ActiveCfg = Release|Any CPU + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8}.CreateInstallerWithDemoProject|Any CPU.Build.0 = Release|Any CPU + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8}.CreateInstallerWithDemoProject|Mixed Platforms.ActiveCfg = Release|Any CPU + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8}.CreateInstallerWithDemoProject|Mixed Platforms.Build.0 = Release|Any CPU + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8}.CreateInstallerWithDemoProject|x86.ActiveCfg = CreateInstallerWithDemoProject|x86 + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8}.CreateInstallerWithDemoProject|x86.Build.0 = CreateInstallerWithDemoProject|x86 + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8}.Debug|x86.ActiveCfg = Debug|x86 + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8}.Debug|x86.Build.0 = Debug|x86 + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8}.Release|Any CPU.Build.0 = Release|Any CPU + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8}.Release|x86.ActiveCfg = Release|x86 + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8}.Release|x86.Build.0 = Release|x86 + {4D840673-3812-4338-A352-84854E32B8A0}.CreateInstaller|Any CPU.ActiveCfg = Release|Any CPU + {4D840673-3812-4338-A352-84854E32B8A0}.CreateInstaller|Any CPU.Build.0 = Release|Any CPU + {4D840673-3812-4338-A352-84854E32B8A0}.CreateInstaller|Mixed Platforms.ActiveCfg = Release|Any CPU + {4D840673-3812-4338-A352-84854E32B8A0}.CreateInstaller|Mixed Platforms.Build.0 = Release|Any CPU + {4D840673-3812-4338-A352-84854E32B8A0}.CreateInstaller|x86.ActiveCfg = Release|x86 + {4D840673-3812-4338-A352-84854E32B8A0}.CreateInstaller|x86.Build.0 = Release|x86 + {4D840673-3812-4338-A352-84854E32B8A0}.CreateInstallerWithDemoProject|Any CPU.ActiveCfg = Release|Any CPU + {4D840673-3812-4338-A352-84854E32B8A0}.CreateInstallerWithDemoProject|Any CPU.Build.0 = Release|Any CPU + {4D840673-3812-4338-A352-84854E32B8A0}.CreateInstallerWithDemoProject|Mixed Platforms.ActiveCfg = Release|Any CPU + {4D840673-3812-4338-A352-84854E32B8A0}.CreateInstallerWithDemoProject|Mixed Platforms.Build.0 = Release|Any CPU + {4D840673-3812-4338-A352-84854E32B8A0}.CreateInstallerWithDemoProject|x86.ActiveCfg = CreateInstallerWithDemoProject|x86 + {4D840673-3812-4338-A352-84854E32B8A0}.CreateInstallerWithDemoProject|x86.Build.0 = CreateInstallerWithDemoProject|x86 + {4D840673-3812-4338-A352-84854E32B8A0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4D840673-3812-4338-A352-84854E32B8A0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4D840673-3812-4338-A352-84854E32B8A0}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {4D840673-3812-4338-A352-84854E32B8A0}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {4D840673-3812-4338-A352-84854E32B8A0}.Debug|x86.ActiveCfg = Debug|x86 + {4D840673-3812-4338-A352-84854E32B8A0}.Debug|x86.Build.0 = Debug|x86 + {4D840673-3812-4338-A352-84854E32B8A0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4D840673-3812-4338-A352-84854E32B8A0}.Release|Any CPU.Build.0 = Release|Any CPU + {4D840673-3812-4338-A352-84854E32B8A0}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {4D840673-3812-4338-A352-84854E32B8A0}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {4D840673-3812-4338-A352-84854E32B8A0}.Release|x86.ActiveCfg = Release|x86 + {4D840673-3812-4338-A352-84854E32B8A0}.Release|x86.Build.0 = Release|x86 + {96C8FDAE-9F59-4D2F-A66E-BE512BB5EECB}.CreateInstaller|Any CPU.ActiveCfg = Release|Any CPU + {96C8FDAE-9F59-4D2F-A66E-BE512BB5EECB}.CreateInstaller|Any CPU.Build.0 = Release|Any CPU + {96C8FDAE-9F59-4D2F-A66E-BE512BB5EECB}.CreateInstaller|Mixed Platforms.ActiveCfg = Release|Any CPU + {96C8FDAE-9F59-4D2F-A66E-BE512BB5EECB}.CreateInstaller|Mixed Platforms.Build.0 = Release|Any CPU + {96C8FDAE-9F59-4D2F-A66E-BE512BB5EECB}.CreateInstaller|x86.ActiveCfg = Release|x86 + {96C8FDAE-9F59-4D2F-A66E-BE512BB5EECB}.CreateInstallerWithDemoProject|Any CPU.ActiveCfg = Release|Any CPU + {96C8FDAE-9F59-4D2F-A66E-BE512BB5EECB}.CreateInstallerWithDemoProject|Any CPU.Build.0 = Release|Any CPU + {96C8FDAE-9F59-4D2F-A66E-BE512BB5EECB}.CreateInstallerWithDemoProject|Mixed Platforms.ActiveCfg = Release|Any CPU + {96C8FDAE-9F59-4D2F-A66E-BE512BB5EECB}.CreateInstallerWithDemoProject|Mixed Platforms.Build.0 = Release|Any CPU + {96C8FDAE-9F59-4D2F-A66E-BE512BB5EECB}.CreateInstallerWithDemoProject|x86.ActiveCfg = CreateInstallerWithDemoProject|x86 + {96C8FDAE-9F59-4D2F-A66E-BE512BB5EECB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {96C8FDAE-9F59-4D2F-A66E-BE512BB5EECB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {96C8FDAE-9F59-4D2F-A66E-BE512BB5EECB}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {96C8FDAE-9F59-4D2F-A66E-BE512BB5EECB}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {96C8FDAE-9F59-4D2F-A66E-BE512BB5EECB}.Debug|x86.ActiveCfg = Debug|x86 + {96C8FDAE-9F59-4D2F-A66E-BE512BB5EECB}.Debug|x86.Build.0 = Debug|x86 + {96C8FDAE-9F59-4D2F-A66E-BE512BB5EECB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {96C8FDAE-9F59-4D2F-A66E-BE512BB5EECB}.Release|Any CPU.Build.0 = Release|Any CPU + {96C8FDAE-9F59-4D2F-A66E-BE512BB5EECB}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {96C8FDAE-9F59-4D2F-A66E-BE512BB5EECB}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {96C8FDAE-9F59-4D2F-A66E-BE512BB5EECB}.Release|x86.ActiveCfg = Release|x86 + {96C8FDAE-9F59-4D2F-A66E-BE512BB5EECB}.Release|x86.Build.0 = Release|x86 + {886FDBE5-7065-4AB9-A894-869DBFD4E440}.CreateInstaller|Any CPU.ActiveCfg = Release|Any CPU + {886FDBE5-7065-4AB9-A894-869DBFD4E440}.CreateInstaller|Any CPU.Build.0 = Release|Any CPU + {886FDBE5-7065-4AB9-A894-869DBFD4E440}.CreateInstaller|Mixed Platforms.ActiveCfg = Release|Any CPU + {886FDBE5-7065-4AB9-A894-869DBFD4E440}.CreateInstaller|Mixed Platforms.Build.0 = Release|Any CPU + {886FDBE5-7065-4AB9-A894-869DBFD4E440}.CreateInstaller|x86.ActiveCfg = Release|x86 + {886FDBE5-7065-4AB9-A894-869DBFD4E440}.CreateInstallerWithDemoProject|Any CPU.ActiveCfg = Release|Any CPU + {886FDBE5-7065-4AB9-A894-869DBFD4E440}.CreateInstallerWithDemoProject|Any CPU.Build.0 = Release|Any CPU + {886FDBE5-7065-4AB9-A894-869DBFD4E440}.CreateInstallerWithDemoProject|Mixed Platforms.ActiveCfg = Release|Any CPU + {886FDBE5-7065-4AB9-A894-869DBFD4E440}.CreateInstallerWithDemoProject|Mixed Platforms.Build.0 = Release|Any CPU + {886FDBE5-7065-4AB9-A894-869DBFD4E440}.CreateInstallerWithDemoProject|x86.ActiveCfg = CreateInstallerWithDemoProject|x86 + {886FDBE5-7065-4AB9-A894-869DBFD4E440}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {886FDBE5-7065-4AB9-A894-869DBFD4E440}.Debug|Any CPU.Build.0 = Debug|Any CPU + {886FDBE5-7065-4AB9-A894-869DBFD4E440}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {886FDBE5-7065-4AB9-A894-869DBFD4E440}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {886FDBE5-7065-4AB9-A894-869DBFD4E440}.Debug|x86.ActiveCfg = Debug|x86 + {886FDBE5-7065-4AB9-A894-869DBFD4E440}.Debug|x86.Build.0 = Debug|x86 + {886FDBE5-7065-4AB9-A894-869DBFD4E440}.Release|Any CPU.ActiveCfg = Release|Any CPU + {886FDBE5-7065-4AB9-A894-869DBFD4E440}.Release|Any CPU.Build.0 = Release|Any CPU + {886FDBE5-7065-4AB9-A894-869DBFD4E440}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {886FDBE5-7065-4AB9-A894-869DBFD4E440}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {886FDBE5-7065-4AB9-A894-869DBFD4E440}.Release|x86.ActiveCfg = Release|x86 + {886FDBE5-7065-4AB9-A894-869DBFD4E440}.Release|x86.Build.0 = Release|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -1490,6 +1640,8 @@ {B5F4F5A5-FD36-405D-ABA1-56C270207C8F} = {041EDC04-3A1E-4FBA-BEB7-F391571C609F} {BC8DB1E0-0428-4FB1-9A63-028C749A8AF9} = {041EDC04-3A1E-4FBA-BEB7-F391571C609F} {E38C11E0-4384-44DD-9F5B-EE73D79FD7F5} = {0590D3BB-EB3E-4B53-BD64-1725E1CBB1F4} + {4D840673-3812-4338-A352-84854E32B8A0} = {0590D3BB-EB3E-4B53-BD64-1725E1CBB1F4} + {886FDBE5-7065-4AB9-A894-869DBFD4E440} = {B5F4F5A5-FD36-405D-ABA1-56C270207C8F} {3ED34ACD-41C9-4251-81EC-7493E0BFF57D} = {F8FFD6DD-19DA-47CE-A0BD-53F4E7D8BB86} {1F0D20C2-7F04-431D-AF22-95A31FD53733} = {F8FFD6DD-19DA-47CE-A0BD-53F4E7D8BB86} {492FFA2C-351E-48DB-BA51-B837657BAF2F} = {F8FFD6DD-19DA-47CE-A0BD-53F4E7D8BB86} @@ -1519,7 +1671,11 @@ {88E04195-C43E-40D3-B5F2-3A25E1E79E03} = {11FE8C37-49EB-4FF2-8583-DABC9816FFC8} {E53693A0-421A-4CB4-B6CA-5870DDFD5895} = {11FE8C37-49EB-4FF2-8583-DABC9816FFC8} {11F1F874-45AF-43E4-8AE5-15A5C9593E28} = {14E296C8-B6B9-458A-A402-68E8A0F9B97C} + {C8383B76-B3F1-4E6E-B56C-527B469FA20A} = {14E296C8-B6B9-458A-A402-68E8A0F9B97C} + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8} = {14E296C8-B6B9-458A-A402-68E8A0F9B97C} {16F1694E-1237-4B03-B34E-70E6871898FE} = {88E04195-C43E-40D3-B5F2-3A25E1E79E03} + {15E7B9D9-A177-42AE-8BC7-91B6DFBAB0EC} = {88E04195-C43E-40D3-B5F2-3A25E1E79E03} + {96C8FDAE-9F59-4D2F-A66E-BE512BB5EECB} = {88E04195-C43E-40D3-B5F2-3A25E1E79E03} EndGlobalSection GlobalSection(TextTemplating) = postSolution TextTemplating = 1 Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Extensions/ContextMenuStripExtensions.cs =================================================================== diff -u --- Ringtoets/Common/src/Ringtoets.Common.Forms/Extensions/ContextMenuStripExtensions.cs (revision 0) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/Extensions/ContextMenuStripExtensions.cs (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -0,0 +1,35 @@ +using System; +using System.Drawing; +using System.Windows.Forms; + +namespace Ringtoets.Common.Forms.Extensions +{ + /// + /// Extension methods for . + /// + public static class ContextMenuStripExtensions + { + /// + /// Adds a new with all standard parameters. + /// + /// The parent menu to which the new item is added. + /// Value for . + /// Value for . + /// Value for . + /// Method to handle the user clicking on the item.. + /// The newly created menu item. + public static ToolStripItem AddMenuItem(this ContextMenuStrip parentMenu, string text, string tooltip, Image icon, EventHandler clickHandler) + { + var newItem = new ToolStripMenuItem(text) + { + ToolTipText = tooltip, + Image = icon + }; + newItem.Click += clickHandler; + + parentMenu.Items.Add(newItem); + + return newItem; + } + } +} \ No newline at end of file Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Properties/AssemblyInfo.cs =================================================================== diff -u --- Ringtoets/Common/src/Ringtoets.Common.Forms/Properties/AssemblyInfo.cs (revision 0) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/Properties/AssemblyInfo.cs (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -0,0 +1,7 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("Ringtoets.Common.Forms")] +[assembly: AssemblyProduct("Ringtoets.Common.Forms")] +[assembly: Guid("74e2898d-5b63-4363-9a2c-3ed3c63ae489")] \ No newline at end of file Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Properties/Resources.Designer.cs =================================================================== diff -u --- Ringtoets/Common/src/Ringtoets.Common.Forms/Properties/Resources.Designer.cs (revision 0) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/Properties/Resources.Designer.cs (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -0,0 +1,82 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.18444 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Ringtoets.Common.Forms.Properties { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + public class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Ringtoets.Common.Forms.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + public static System.Drawing.Bitmap receipt_text { + get { + object obj = ResourceManager.GetObject("receipt_text", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized string similar to Algemeen. + /// + public static string Ringtoets_Category { + get { + return ResourceManager.GetString("Ringtoets_Category", resourceCulture); + } + } + } +} Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Properties/Resources.resx =================================================================== diff -u --- Ringtoets/Common/src/Ringtoets.Common.Forms/Properties/Resources.resx (revision 0) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/Properties/Resources.resx (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + ..\Resources\receipt-text.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + Algemeen + + \ No newline at end of file Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Resources/receipt-text.png =================================================================== diff -u Binary files differ Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Ringtoets.Common.Forms.csproj =================================================================== diff -u --- Ringtoets/Common/src/Ringtoets.Common.Forms/Ringtoets.Common.Forms.csproj (revision 0) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/Ringtoets.Common.Forms.csproj (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -0,0 +1,108 @@ + + + + + Debug + AnyCPU + {4D840673-3812-4338-A352-84854E32B8A0} + Library + Properties + Ringtoets.Common.Forms + Ringtoets.Common.Forms + v4.0 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + true + bin\Debug\ + DEBUG;TRACE + full + x86 + prompt + MinimumRecommendedRules.ruleset + + + bin\Release\ + TRACE + true + pdbonly + x86 + prompt + MinimumRecommendedRules.ruleset + + + bin\CreateInstallerWithDemoProject\ + TRACE + true + pdbonly + AnyCPU + prompt + MinimumRecommendedRules.ruleset + + + bin\CreateInstallerWithDemoProject\ + TRACE + true + pdbonly + x86 + prompt + MinimumRecommendedRules.ruleset + + + + + + + + + + + + + + + Properties\GlobalAssembly.cs + + + + + True + True + Resources.resx + + + + + PublicResXFileCodeGenerator + Resources.Designer.cs + + + + + + + + \ No newline at end of file Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Extensions/ContextMenuStripExtensionsTest.cs =================================================================== diff -u --- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Extensions/ContextMenuStripExtensionsTest.cs (revision 0) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Extensions/ContextMenuStripExtensionsTest.cs (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -0,0 +1,38 @@ +using System.Drawing; +using System.Windows.Forms; +using NUnit.Framework; + +using Ringtoets.Common.Forms.Extensions; +using FormsResources = Ringtoets.Common.Forms.Properties.Resources; + +namespace Ringtoets.Common.Forms.Test.Extensions +{ + [TestFixture] + public class ContextMenuStripExtensionsTest + { + [Test] + public void AddMenuItem_AllDataProvided_AddFullyInitializedMenuItem() + { + // Setup + var menu = new ContextMenuStrip(); + int callCount = 0; + + const string menuItemsText = ""; + const string menuItemsTooltip = ""; + + // Call + var newItem = menu.AddMenuItem(menuItemsText, menuItemsTooltip, FormsResources.receipt_text, (sender, args) => callCount++); + + // Assert + Assert.AreEqual(1, menu.Items.Count); + var addedMenuItem = menu.Items[0]; + Assert.AreSame(newItem, addedMenuItem); + Assert.AreEqual(menuItemsText, addedMenuItem.Text); + Assert.AreEqual(menuItemsTooltip, addedMenuItem.ToolTipText); + Assert.IsNotNull((Image)addedMenuItem.Image); + + addedMenuItem.PerformClick(); + Assert.AreEqual(1, callCount); + } + } +} \ No newline at end of file Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Properties/AssemblyInfo.cs =================================================================== diff -u --- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Properties/AssemblyInfo.cs (revision 0) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Properties/AssemblyInfo.cs (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Ringtoets.Common.Forms.Test")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("Ringtoets.Common.Forms.Test")] +[assembly: AssemblyCopyright("Copyright © Microsoft 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("46a6bd14-7126-417a-8afe-284053946f5e")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Ringtoets.Common.Forms.Test.csproj =================================================================== diff -u --- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Ringtoets.Common.Forms.Test.csproj (revision 0) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Ringtoets.Common.Forms.Test.csproj (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -0,0 +1,103 @@ + + + + + Debug + AnyCPU + {886FDBE5-7065-4AB9-A894-869DBFD4E440} + Library + Properties + Ringtoets.Common.Forms.Test + Ringtoets.Common.Forms.Test + v4.0 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + true + bin\Debug\ + DEBUG;TRACE + full + x86 + prompt + MinimumRecommendedRules.ruleset + + + bin\Release\ + TRACE + true + pdbonly + x86 + prompt + MinimumRecommendedRules.ruleset + + + bin\CreateInstallerWithDemoProject\ + TRACE + true + pdbonly + AnyCPU + prompt + MinimumRecommendedRules.ruleset + + + bin\CreateInstallerWithDemoProject\ + TRACE + true + pdbonly + x86 + prompt + MinimumRecommendedRules.ruleset + + + + ..\..\..\..\lib\nunit.framework.dll + + + ..\..\..\..\lib\Rhino.Mocks.dll + + + + + + + + + + + + + + + + + + {4d840673-3812-4338-a352-84854e32b8a0} + Ringtoets.Common.Forms + + + + + \ No newline at end of file Index: Ringtoets/Demo/src/Ringtoets.Demo/Commands/AddNewDemoAssessmentSectionCommand.cs =================================================================== diff -u -r03cb43bd51e792d784654d90b33b6657ffeb4221 -raa5c3620f316831e71797c558a13a0b73a8109df --- Ringtoets/Demo/src/Ringtoets.Demo/Commands/AddNewDemoAssessmentSectionCommand.cs (.../AddNewDemoAssessmentSectionCommand.cs) (revision 03cb43bd51e792d784654d90b33b6657ffeb4221) +++ Ringtoets/Demo/src/Ringtoets.Demo/Commands/AddNewDemoAssessmentSectionCommand.cs (.../AddNewDemoAssessmentSectionCommand.cs) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -5,7 +5,7 @@ using Core.Common.Gui; -using Ringtoets.Piping.Data; +using Ringtoets.Integration.Data; using Ringtoets.Piping.Plugin.FileImporter; namespace Ringtoets.Demo.Commands @@ -25,23 +25,18 @@ project.NotifyObservers(); } - private AssessmentSection CreateNewDemoAssessmentSection() + private DikeAssessmentSection CreateNewDemoAssessmentSection() { - var demoAssessmentSection = new AssessmentSection + var demoAssessmentSection = new DikeAssessmentSection() { - Name = "Demo traject" + Name = "Demo dijktraject" }; InitializeDemoPipingData(demoAssessmentSection); return demoAssessmentSection; } - private void InitializeDemoPipingData(AssessmentSection demoAssessmentSection) + private void InitializeDemoPipingData(DikeAssessmentSection demoAssessmentSection) { - if (demoAssessmentSection.CanAddPipingFailureMechanism()) - { - demoAssessmentSection.InitializePipingFailureMechanism(); - } - var pipingFailureMechanism = demoAssessmentSection.PipingFailureMechanism; using (var tempPath = new TemporaryImportFile("DR6_surfacelines.csv")) Index: Ringtoets/Demo/src/Ringtoets.Demo/Ringtoets.Demo.csproj =================================================================== diff -u -r03cb43bd51e792d784654d90b33b6657ffeb4221 -raa5c3620f316831e71797c558a13a0b73a8109df --- Ringtoets/Demo/src/Ringtoets.Demo/Ringtoets.Demo.csproj (.../Ringtoets.Demo.csproj) (revision 03cb43bd51e792d784654d90b33b6657ffeb4221) +++ Ringtoets/Demo/src/Ringtoets.Demo/Ringtoets.Demo.csproj (.../Ringtoets.Demo.csproj) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -109,6 +109,10 @@ {f49bd8b2-332a-4c91-a196-8cce0a2c7d98} Core.Common.Utils + + {11f1f874-45af-43e4-8ae5-15a5c9593e28} + Ringtoets.Integration.Data + {ce994cc9-6f6a-48ac-b4be-02c30a21f4db} Ringtoets.Piping.Data Index: Ringtoets/Demo/test/Ringtoets.Demo.Test/Commands/AddNewDemoAssessmentSectionCommandTest.cs =================================================================== diff -u -r03cb43bd51e792d784654d90b33b6657ffeb4221 -raa5c3620f316831e71797c558a13a0b73a8109df --- Ringtoets/Demo/test/Ringtoets.Demo.Test/Commands/AddNewDemoAssessmentSectionCommandTest.cs (.../AddNewDemoAssessmentSectionCommandTest.cs) (revision 03cb43bd51e792d784654d90b33b6657ffeb4221) +++ Ringtoets/Demo/test/Ringtoets.Demo.Test/Commands/AddNewDemoAssessmentSectionCommandTest.cs (.../AddNewDemoAssessmentSectionCommandTest.cs) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -9,6 +9,7 @@ using Rhino.Mocks; using Ringtoets.Demo.Commands; +using Ringtoets.Integration.Data; using Ringtoets.Piping.Calculation.Piping; using Ringtoets.Piping.Data; using Ringtoets.Piping.Service; @@ -58,8 +59,8 @@ // Assert Assert.AreEqual(1, project.Items.Count); - var demoAssessmentSection = (AssessmentSection) project.Items[0]; - Assert.AreEqual("Demo traject", demoAssessmentSection.Name); + var demoAssessmentSection = (DikeAssessmentSection) project.Items[0]; + Assert.AreEqual("Demo dijktraject", demoAssessmentSection.Name); var profiles = demoAssessmentSection.PipingFailureMechanism.SoilProfiles.ToArray(); Assert.AreEqual(26, profiles.Length); Index: Ringtoets/Demo/test/Ringtoets.Demo.Test/Ringtoets.Demo.Test.csproj =================================================================== diff -u -r03cb43bd51e792d784654d90b33b6657ffeb4221 -raa5c3620f316831e71797c558a13a0b73a8109df --- Ringtoets/Demo/test/Ringtoets.Demo.Test/Ringtoets.Demo.Test.csproj (.../Ringtoets.Demo.Test.csproj) (revision 03cb43bd51e792d784654d90b33b6657ffeb4221) +++ Ringtoets/Demo/test/Ringtoets.Demo.Test/Ringtoets.Demo.Test.csproj (.../Ringtoets.Demo.Test.csproj) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -90,6 +90,10 @@ {f49bd8b2-332a-4c91-a196-8cce0a2c7d98} Core.Common.Utils + + {11f1f874-45af-43e4-8ae5-15a5c9593e28} + Ringtoets.Integration.Data + {d64e4f0e-e341-496f-82b2-941ad202b4e3} Ringtoets.Piping.Calculation Index: Ringtoets/Integration/src/Ringtoets.Integration.Data/DikeAssessmentSection.cs =================================================================== diff -u -re4190343f86e5f4b5fa2bb60f9d5ec307d8053f5 -raa5c3620f316831e71797c558a13a0b73a8109df --- Ringtoets/Integration/src/Ringtoets.Integration.Data/DikeAssessmentSection.cs (.../DikeAssessmentSection.cs) (revision e4190343f86e5f4b5fa2bb60f9d5ec307d8053f5) +++ Ringtoets/Integration/src/Ringtoets.Integration.Data/DikeAssessmentSection.cs (.../DikeAssessmentSection.cs) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -1,12 +1,14 @@ -using Ringtoets.Common.Placeholder; +using Core.Common.Base; + +using Ringtoets.Common.Placeholder; using Ringtoets.Piping.Data; namespace Ringtoets.Integration.Data { /// /// The section to be assessed by the user for safety in regards of various failure mechanisms. /// - public class DikeAssessmentSection + public class DikeAssessmentSection : Observable { /// /// Initializes a new instance of the class. Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/NodePresenters/AssessmentSectionNodePresenter.cs =================================================================== diff -u --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/NodePresenters/AssessmentSectionNodePresenter.cs (revision 0) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/NodePresenters/AssessmentSectionNodePresenter.cs (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -0,0 +1,112 @@ +using System; +using System.Collections; +using System.ComponentModel; +using System.Windows.Forms; + +using Core.Common.Base; +using Core.Common.Controls; +using Core.Common.Utils.Collections; + +using Ringtoets.Common.Forms.Extensions; +using Ringtoets.Integration.Data; + +using RingtoetsFormsResources = Ringtoets.Integration.Forms.Properties.Resources; + +namespace Ringtoets.Integration.Forms.NodePresenters +{ + /// + /// Node presenter for items in the tree view. + /// + public class AssessmentSectionNodePresenter : ITreeNodePresenter + { + public ITreeView TreeView { get; set; } + + public Type NodeTagType + { + get + { + return typeof(DikeAssessmentSection); + } + } + + public void UpdateNode(ITreeNode parentNode, ITreeNode node, object nodeData) + { + var assessmentSection = (DikeAssessmentSection)nodeData; + node.Text = assessmentSection.Name; + node.Image = RingtoetsFormsResources.AssessmentSectionFolderIcon; + } + + public IEnumerable GetChildNodeObjects(object parentNodeData, ITreeNode node) + { + var assessmentSection = (DikeAssessmentSection)parentNodeData; + if (assessmentSection.PipingFailureMechanism != null) + { + yield return assessmentSection.PipingFailureMechanism; + } + } + + public bool CanRenameNode(ITreeNode node) + { + return true; + } + + public bool CanRenameNodeTo(ITreeNode node, string newName) + { + return true; + } + + public void OnNodeRenamed(object nodeData, string newName) + { + var assessmentSection = (DikeAssessmentSection)nodeData; + + assessmentSection.Name = newName; + assessmentSection.NotifyObservers(); + } + + public void OnNodeChecked(ITreeNode node) {} + + public DragOperations CanDrag(object nodeData) + { + return DragOperations.None; + } + + public DragOperations CanDrop(object item, ITreeNode sourceNode, ITreeNode targetNode, DragOperations validOperations) + { + return DragOperations.None; + } + + public bool CanInsert(object item, ITreeNode sourceNode, ITreeNode targetNode) + { + return false; + } + + public void OnDragDrop(object item, object sourceParentNodeData, object targetParentNodeData, DragOperations operation, int position) {} + + public void OnNodeSelected(object nodeData) {} + + public ContextMenuStrip GetContextMenu(ITreeNode sender, object nodeData) + { + return null; + } + + public void OnPropertyChanged(object sender, ITreeNode node, PropertyChangedEventArgs e) {} + + public void OnCollectionChanged(object sender, NotifyCollectionChangingEventArgs e) {} + + public bool CanRemove(object parentNodeData, object nodeData) + { + return true; + } + + public bool RemoveNodeData(object parentNodeData, object nodeData) + { + var parentProject = (Project) parentNodeData; + var assessmentSection = (DikeAssessmentSection) nodeData; + + parentProject.Items.Remove(assessmentSection); + parentProject.NotifyObservers(); + + return true; + } + } +} \ No newline at end of file Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Properties/AssemblyInfo.cs =================================================================== diff -u --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Properties/AssemblyInfo.cs (revision 0) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Properties/AssemblyInfo.cs (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -0,0 +1,11 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Ringtoets.Integration.Forms")] +[assembly: AssemblyProduct("Ringtoets.Integration.Forms")] +[assembly: Guid("29efee41-4016-4661-82b1-932c89986d24")] +[assembly: InternalsVisibleTo("Ringtoets.Integration.Plugin")] Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Properties/Resources.Designer.cs =================================================================== diff -u --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Properties/Resources.Designer.cs (revision 0) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Properties/Resources.Designer.cs (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -0,0 +1,156 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.18444 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Ringtoets.Integration.Forms.Properties { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Ringtoets.Integration.Forms.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to Naam van het toetstraject.. + /// + internal static string AssessmentSection_Name_Description { + get { + return ResourceManager.GetString("AssessmentSection_Name_Description", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Naam. + /// + internal static string AssessmentSection_Name_DisplayName { + get { + return ResourceManager.GetString("AssessmentSection_Name_DisplayName", resourceCulture); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap AssessmentSectionFolderIcon { + get { + object obj = ResourceManager.GetObject("AssessmentSectionFolderIcon", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized string similar to Voeg piping faalmechanisme toe. + /// + internal static string AssessmentSectionNodePresenter_ContextMenu_Add_PipingFailureMechanism { + get { + return ResourceManager.GetString("AssessmentSectionNodePresenter_ContextMenu_Add_PipingFailureMechanism", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Start een nieuwe piping toetsing voor dit project.. + /// + internal static string AssessmentSectionNodePresenter_ContextMenu_Add_PipingFailureMechanism_Tooltip { + get { + return ResourceManager.GetString("AssessmentSectionNodePresenter_ContextMenu_Add_PipingFailureMechanism_Tooltip", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Kan geen nieuwe piping toetsing starten, omdat er al een piping toetsing is gestart voor dit project.. + /// + internal static string AssessmentSectionNodePresenter_ContextMenu_PipingFailureMechanism_Already_Added_Tooltip { + get { + return ResourceManager.GetString("AssessmentSectionNodePresenter_ContextMenu_PipingFailureMechanism_Already_Added_T" + + "ooltip", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Toetstraject. + /// + internal static string AssessmentSectionProperties_DisplayName { + get { + return ResourceManager.GetString("AssessmentSectionProperties_DisplayName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Algemeen. + /// + internal static string Categories_General { + get { + return ResourceManager.GetString("Categories_General", resourceCulture); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap FailureMechanismIcon { + get { + object obj = ResourceManager.GetObject("FailureMechanismIcon", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized string similar to Algemeen. + /// + internal static string Ringtoets_Category { + get { + return ResourceManager.GetString("Ringtoets_Category", resourceCulture); + } + } + } +} Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Properties/Resources.resx =================================================================== diff -u --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Properties/Resources.resx (revision 0) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Properties/Resources.resx (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -0,0 +1,151 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Algemeen + + + Toetstraject + + + Naam van het toetstraject. + + + Naam + + + Algemeen + + + + ..\Resources\folder-stand.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + Voeg piping faalmechanisme toe + + + Start een nieuwe piping toetsing voor dit project. + + + Kan geen nieuwe piping toetsing starten, omdat er al een piping toetsing is gestart voor dit project. + + + ..\Resources\control_equalizer_blue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/AssessmentSectionProperties.cs =================================================================== diff -u --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/AssessmentSectionProperties.cs (revision 0) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/AssessmentSectionProperties.cs (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -0,0 +1,31 @@ +using Core.Common.Gui; +using Core.Common.Utils; + +using Ringtoets.Integration.Data; +using Ringtoets.Integration.Forms.Properties; + +namespace Ringtoets.Integration.Forms.PropertyClasses +{ + /// + /// ViewModel of for properties panel. + /// + [ResourcesDisplayName(typeof(Resources), "AssessmentSectionProperties_DisplayName")] + public class AssessmentSectionProperties : ObjectProperties + { + [ResourcesCategory(typeof(Resources), "Categories_General")] + [ResourcesDisplayName(typeof(Resources), "AssessmentSection_Name_DisplayName")] + [ResourcesDescription(typeof(Resources), "AssessmentSection_Name_Description")] + public string Name + { + get + { + return data.Name; + } + set + { + data.Name = value; + data.NotifyObservers(); + } + } + } +} \ No newline at end of file Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Resources/control_equalizer_blue.png =================================================================== diff -u Binary files differ Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Resources/folder-stand.png =================================================================== diff -u Binary files differ Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Ringtoets.Integration.Forms.csproj =================================================================== diff -u --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Ringtoets.Integration.Forms.csproj (revision 0) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Ringtoets.Integration.Forms.csproj (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -0,0 +1,142 @@ + + + + + Debug + AnyCPU + {AD0CDC89-0A00-4068-AEEC-9838863C2FE8} + Library + Properties + Ringtoets.Integration.Forms + Ringtoets.Integration.Forms + v4.0 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + true + bin\Debug\ + DEBUG;TRACE + full + x86 + prompt + MinimumRecommendedRules.ruleset + + + bin\Release\ + TRACE + true + pdbonly + x86 + prompt + MinimumRecommendedRules.ruleset + + + bin\CreateInstallerWithDemoProject\ + TRACE + true + pdbonly + AnyCPU + prompt + MinimumRecommendedRules.ruleset + + + bin\CreateInstallerWithDemoProject\ + TRACE + true + pdbonly + x86 + prompt + MinimumRecommendedRules.ruleset + + + + + + + + + + + + + + + Properties\GlobalAssembly.cs + + + + + True + True + Resources.resx + + + + + + {3bbfd65b-b277-4e50-ae6d-bd24c3434609} + Core.Common.Base + + + {9a2d67e6-26ac-4d17-b11a-2b4372f2f572} + Core.Common.Controls + + + {30e4c2ae-719e-4d70-9fa9-668a9767fbfa} + Core.Common.Gui + + + {f49bd8b2-332a-4c91-a196-8cce0a2c7d98} + Core.Common.Utils + + + {4d840673-3812-4338-a352-84854e32b8a0} + Ringtoets.Common.Forms + + + {ce994cc9-6f6a-48ac-b4be-02c30a21f4db} + Ringtoets.Piping.Data + + + {11f1f874-45af-43e4-8ae5-15a5c9593e28} + Ringtoets.Integration.Data + + + + + ResXFileCodeGenerator + Resources.Designer.cs + + + + + + + + + + + \ No newline at end of file Fisheye: Tag 47ddc19835a668e6c1c5edad4a7bec58e2200c10 refers to a dead (removed) revision in file `Ringtoets/Integration/src/Ringtoets.Integration.Plugin/Properties/AssemblyInfo.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 47ddc19835a668e6c1c5edad4a7bec58e2200c10 refers to a dead (removed) revision in file `Ringtoets/Integration/src/Ringtoets.Integration.Plugin/Ringtoets.Integration.Plugin.csproj'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 47ddc19835a668e6c1c5edad4a7bec58e2200c10 refers to a dead (removed) revision in file `Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsApplicationPlugin.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 47ddc19835a668e6c1c5edad4a7bec58e2200c10 refers to a dead (removed) revision in file `Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsGuiPlugin.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/DikeAssessmentSectionTest.cs =================================================================== diff -u -re4190343f86e5f4b5fa2bb60f9d5ec307d8053f5 -raa5c3620f316831e71797c558a13a0b73a8109df --- Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/DikeAssessmentSectionTest.cs (.../DikeAssessmentSectionTest.cs) (revision e4190343f86e5f4b5fa2bb60f9d5ec307d8053f5) +++ Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/DikeAssessmentSectionTest.cs (.../DikeAssessmentSectionTest.cs) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -1,5 +1,7 @@ -using NUnit.Framework; +using Core.Common.Base; +using NUnit.Framework; + using Ringtoets.Piping.Data; namespace Ringtoets.Integration.Data.Test @@ -14,6 +16,8 @@ var section = new DikeAssessmentSection(); // Assert + Assert.IsInstanceOf(section); + Assert.AreEqual("Dijktraject", section.Name); Assert.AreEqual("Referentielijn", section.ReferenceLine.Name); Assert.AreEqual("Faalkansverdeling", section.FailureMechanismContribution.Name); Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/NodePresenters/AssessmentSectionNodePresenterTest.cs =================================================================== diff -u --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/NodePresenters/AssessmentSectionNodePresenterTest.cs (revision 0) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/NodePresenters/AssessmentSectionNodePresenterTest.cs (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -0,0 +1,353 @@ +using System.ComponentModel; +using System.Linq; + +using Core.Common.Base; +using Core.Common.Controls; +using Core.Common.Utils.Collections; + +using NUnit.Framework; + +using Rhino.Mocks; + +using Ringtoets.Integration.Data; +using Ringtoets.Integration.Forms.NodePresenters; +using Ringtoets.Piping.Data; + +namespace Ringtoets.Integration.Forms.Test.NodePresenters +{ + [TestFixture] + public class AssessmentSectionNodePresenterTest + { + [Test] + public void DefaultConstructor_ExpectedValues() + { + // Call + var nodePresenter = new AssessmentSectionNodePresenter(); + + // Assert + Assert.IsInstanceOf(nodePresenter); + Assert.IsNull(nodePresenter.TreeView); + Assert.AreEqual(typeof(DikeAssessmentSection), nodePresenter.NodeTagType); + } + + [Test] + public void UpdateNode_WithData_InitializeNode() + { + // Setup + const string projectName = ""; + + var mocks = new MockRepository(); + var projectNode = mocks.Stub(); + mocks.ReplayAll(); + + var nodePresenter = new AssessmentSectionNodePresenter(); + + var assessmentSection = new DikeAssessmentSection + { + Name = projectName + }; + + // Call + nodePresenter.UpdateNode(null, projectNode, assessmentSection); + + // Assert + Assert.AreEqual(projectName, projectNode.Text); + Assert.AreEqual(16, projectNode.Image.Height); + Assert.AreEqual(16, projectNode.Image.Width); + } + + [Test] + public void GetChildNodeObjects_WithPipingFailureMechanism_ReturnPipingFailureMechanism() + { + // Setup + var mocks = new MockRepository(); + var nodeMock = mocks.StrictMock(); + mocks.ReplayAll(); + + var nodePresenter = new AssessmentSectionNodePresenter(); + + var assessmentSection = new DikeAssessmentSection(); + + // Call + var children = nodePresenter.GetChildNodeObjects(assessmentSection, nodeMock).Cast().AsList(); + + // Assert + Assert.AreEqual(1, children.Count); + Assert.AreSame(assessmentSection.PipingFailureMechanism, children[0]); + mocks.VerifyAll(); // Expect no calls on tree node + } + + [Test] + public void CanRenameNode_Always_ReturnTrue() + { + // Setup + var mocks = new MockRepository(); + var nodeMock = mocks.StrictMock(); + mocks.ReplayAll(); + + var nodePresenter = new AssessmentSectionNodePresenter(); + + // Call + var renameAllowed = nodePresenter.CanRenameNode(nodeMock); + + // Assert + Assert.IsTrue(renameAllowed); + mocks.VerifyAll(); // Expect no calls on tree node + } + + [Test] + public void CanRenameNodeTo_Always_ReturnTrue() + { + // Setup + var mocks = new MockRepository(); + var nodeMock = mocks.StrictMock(); + mocks.ReplayAll(); + + var nodePresenter = new AssessmentSectionNodePresenter(); + + // Call + var renameAllowed = nodePresenter.CanRenameNodeTo(nodeMock, ""); + + // Assert + Assert.IsTrue(renameAllowed); + mocks.ReplayAll(); // Expect no calls on tree node + } + + [Test] + public void OnNodeRenamed_WithData_SetProjectNameWithNotification() + { + // Setup + var mocks = new MockRepository(); + var assessmentSectionObserver = mocks.StrictMock(); + assessmentSectionObserver.Expect(o => o.UpdateObserver()); + mocks.ReplayAll(); + + var nodePresenter = new AssessmentSectionNodePresenter(); + + var assessmentSection = new DikeAssessmentSection(); + assessmentSection.Attach(assessmentSectionObserver); + + // Call + const string newName = "New Name"; + nodePresenter.OnNodeRenamed(assessmentSection, newName); + + // Assert + Assert.AreEqual(newName, assessmentSection.Name); + mocks.VerifyAll(); + } + + [Test] + public void OnNodeChecked_Always_DoNothing() + { + // Setup + var mocks = new MockRepository(); + var nodeMock = mocks.StrictMock(); + mocks.ReplayAll(); + + var nodePresenter = new AssessmentSectionNodePresenter(); + + // Call + nodePresenter.OnNodeChecked(nodeMock); + + // Assert + mocks.VerifyAll(); // Expect no calls on tree node + } + + [Test] + public void CanDrag_Always_ReturnNone() + { + // Setup + var mocks = new MockRepository(); + var dataMock = mocks.StrictMock(); + mocks.ReplayAll(); + + var nodePresenter = new AssessmentSectionNodePresenter(); + + // Call + DragOperations dragAllowed = nodePresenter.CanDrag(dataMock); + + // Assert + Assert.AreEqual(DragOperations.None, dragAllowed); + mocks.VerifyAll(); + } + + [Test] + public void CanDrop_Always_ReturnNone() + { + // Setup + var mocks = new MockRepository(); + var dataMock = mocks.StrictMock(); + var sourceMock = mocks.StrictMock(); + var targetMock = mocks.StrictMock(); + mocks.ReplayAll(); + + var nodePresenter = new AssessmentSectionNodePresenter(); + + // Call + DragOperations dropAllowed = nodePresenter.CanDrop(dataMock, sourceMock, targetMock, DragOperations.Move); + + // Assert + Assert.AreEqual(DragOperations.None, dropAllowed); + mocks.VerifyAll(); // Expect no calls on mocks. + } + + [Test] + public void CanInsert_Always_ReturnFalse() + { + // Setup + var mocks = new MockRepository(); + var dataMock = mocks.StrictMock(); + var sourceMock = mocks.StrictMock(); + var targetMock = mocks.StrictMock(); + mocks.ReplayAll(); + + var nodePresenter = new AssessmentSectionNodePresenter(); + + // Call + bool insertionAllowed = nodePresenter.CanInsert(dataMock, sourceMock, targetMock); + + // Assert + Assert.IsFalse(insertionAllowed); + mocks.VerifyAll(); // Expect no calls on arguments + } + + [Test] + public void OnDragDrop_Always_DoNothing() + { + // Setup + var mocks = new MockRepository(); + var dataMock = mocks.StrictMock(); + var sourceParentNodeMock = mocks.StrictMock(); + var targetParentNodeDataMock = mocks.StrictMock(); + mocks.ReplayAll(); + + var nodePresenter = new AssessmentSectionNodePresenter(); + + // Call + nodePresenter.OnDragDrop(dataMock, sourceParentNodeMock, targetParentNodeDataMock, DragOperations.Move, 2); + + // Assert + mocks.VerifyAll(); // Expect no calls on arguments + } + + [Test] + public void OnNodeSelected_Always_DoNothing() + { + // Setup + var mocks = new MockRepository(); + var dataMock = mocks.StrictMock(); + mocks.ReplayAll(); + + var nodePresenter = new AssessmentSectionNodePresenter(); + + // Call + nodePresenter.OnNodeSelected(dataMock); + + // Assert + mocks.VerifyAll(); // Expect no calls on arguments + } + + [Test] + public void GetContextMenu_Always_ReturnsNull() + { + // Setup + var mocks = new MockRepository(); + var nodeMock = mocks.StrictMock(); + var assessmentSection = new DikeAssessmentSection(); + mocks.ReplayAll(); + + var nodePresenter = new AssessmentSectionNodePresenter(); + + // Call + var contextMenu = nodePresenter.GetContextMenu(nodeMock, assessmentSection); + + // Assert + Assert.IsNull(contextMenu); + mocks.VerifyAll(); // Expect no calls on arguments + } + + [Test] + public void OnPropertyChange_Always_DoNothing() + { + // Setup + var mocks = new MockRepository(); + var dataMock = mocks.StrictMock(); + var nodeMock = mocks.StrictMock(); + var eventArgsMock = mocks.StrictMock(""); + mocks.ReplayAll(); + + var nodePresenter = new AssessmentSectionNodePresenter(); + + // Call + nodePresenter.OnPropertyChanged(dataMock, nodeMock, eventArgsMock); + + // Assert + mocks.VerifyAll(); // Expect no calls on arguments + } + + [Test] + public void OnCollectionChange_Always_DoNothing() + { + // Setup + var mocks = new MockRepository(); + var dataMock = mocks.StrictMock(); + var eventArgsMock = mocks.StrictMock(); + mocks.ReplayAll(); + + var nodePresenter = new AssessmentSectionNodePresenter(); + + // Call + nodePresenter.OnCollectionChanged(dataMock, eventArgsMock); + + // Assert + mocks.VerifyAll(); // Expect no calls on arguments + } + + [Test] + public void CanRemove_Always_ReturnTrue() + { + // Setup + var mocks = new MockRepository(); + var dataMock = mocks.StrictMock(); + var nodeMock = mocks.StrictMock(); + mocks.ReplayAll(); + + var nodePresenter = new AssessmentSectionNodePresenter(); + + // Call + bool removalAllowed = nodePresenter.CanRemove(dataMock, nodeMock); + + // Assert + Assert.IsTrue(removalAllowed); + mocks.VerifyAll(); // Expect no calls on arguments + } + + [Test] + public void RemoveNodeData_ProjectWithAssessmentSection_ReturnTrueAndRemoveAssessmentSection() + { + // Setup + var mocks = new MockRepository(); + + var observerMock = mocks.StrictMock(); + observerMock.Expect(o => o.UpdateObserver()); + + mocks.ReplayAll(); + + var assessmentSection = new DikeAssessmentSection(); + + var project = new Project(); + project.Items.Add(assessmentSection); + project.Attach(observerMock); + + var nodePresenter = new AssessmentSectionNodePresenter(); + + // Call + bool removalSuccesful = nodePresenter.RemoveNodeData(project, assessmentSection); + + // Assert + Assert.IsTrue(removalSuccesful); + CollectionAssert.DoesNotContain(project.Items, assessmentSection); + mocks.VerifyAll(); + } + } +} \ No newline at end of file Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Properties/AssemblyInfo.cs =================================================================== diff -u --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Properties/AssemblyInfo.cs (revision 0) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Properties/AssemblyInfo.cs (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Ringtoets.Integration.Forms.Test")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("Ringtoets.Integration.Forms.Test")] +[assembly: AssemblyCopyright("Copyright © Microsoft 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("757f8d83-9ae3-4679-b723-86ea777ba3e2")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/AssessmentSectionPropertiesTest.cs =================================================================== diff -u --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/AssessmentSectionPropertiesTest.cs (revision 0) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/AssessmentSectionPropertiesTest.cs (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -0,0 +1,72 @@ +using Core.Common.Base; +using Core.Common.Gui; + +using NUnit.Framework; + +using Rhino.Mocks; + +using Ringtoets.Integration.Data; +using Ringtoets.Integration.Forms.PropertyClasses; + +namespace Ringtoets.Integration.Forms.Test.PropertyClasses +{ + [TestFixture] + public class AssessmentSectionPropertiesTest + { + [Test] + public void DefaultConstructor_ExpectedValues() + { + // Call + var properties = new AssessmentSectionProperties(); + + // Assert + Assert.IsInstanceOf>(properties); + Assert.IsNull(properties.Data); + } + + [Test] + public void GetProperties_WithData_ReturnExpectedValues() + { + // Setup + var assessmentSection = new DikeAssessmentSection + { + Name = "Test" + }; + + var properties = new AssessmentSectionProperties + { + Data = assessmentSection + }; + + // Call & Assert + Assert.AreEqual(assessmentSection.Name, properties.Name); + } + + [Test] + public void SetProperties_WithData_UpdateDataAndNotifyObservers() + { + // Setup + var mocks = new MockRepository(); + var projectObserver = mocks.StrictMock(); + projectObserver.Expect(o => o.UpdateObserver()); + mocks.ReplayAll(); + + var assessmentSection = new DikeAssessmentSection(); + assessmentSection.Attach(projectObserver); + + var properties = new AssessmentSectionProperties + { + Data = assessmentSection + }; + + const string newName = "Test"; + + // Call + properties.Name = newName; + + // Assert + Assert.AreEqual(newName, assessmentSection.Name); + mocks.VerifyAll(); + } + } +} \ No newline at end of file Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Ringtoets.Integration.Forms.Test.csproj =================================================================== diff -u --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Ringtoets.Integration.Forms.Test.csproj (revision 0) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Ringtoets.Integration.Forms.Test.csproj (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -0,0 +1,128 @@ + + + + + Debug + AnyCPU + {96C8FDAE-9F59-4D2F-A66E-BE512BB5EECB} + Library + Properties + Ringtoets.Integration.Forms.Test + Ringtoets.Integration.Forms.Test + v4.0 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + true + bin\Debug\ + DEBUG;TRACE + full + x86 + prompt + MinimumRecommendedRules.ruleset + + + bin\Release\ + TRACE + true + pdbonly + x86 + prompt + MinimumRecommendedRules.ruleset + + + bin\CreateInstallerWithDemoProject\ + TRACE + true + pdbonly + AnyCPU + prompt + MinimumRecommendedRules.ruleset + + + bin\CreateInstallerWithDemoProject\ + TRACE + true + pdbonly + x86 + prompt + MinimumRecommendedRules.ruleset + + + + ..\..\..\..\lib\nunit.framework.dll + + + ..\..\..\..\lib\Rhino.Mocks.dll + + + + + + + + + + + + + + + + + + + {3bbfd65b-b277-4e50-ae6d-bd24c3434609} + Core.Common.Base + + + {9a2d67e6-26ac-4d17-b11a-2b4372f2f572} + Core.Common.Controls + + + {30e4c2ae-719e-4d70-9fa9-668a9767fbfa} + Core.Common.Gui + + + {f49bd8b2-332a-4c91-a196-8cce0a2c7d98} + Core.Common.Utils + + + {ce994cc9-6f6a-48ac-b4be-02c30a21f4db} + Ringtoets.Piping.Data + + + {11f1f874-45af-43e4-8ae5-15a5c9593e28} + Ringtoets.Integration.Data + + + {ad0cdc89-0a00-4068-aeec-9838863c2fe8} + Ringtoets.Integration.Forms + + + + + \ No newline at end of file Fisheye: Tag 47ddc19835a668e6c1c5edad4a7bec58e2200c10 refers to a dead (removed) revision in file `Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/Properties/AssemblyInfo.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 47ddc19835a668e6c1c5edad4a7bec58e2200c10 refers to a dead (removed) revision in file `Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/Ringtoets.Integration.Plugin.Test.csproj'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 47ddc19835a668e6c1c5edad4a7bec58e2200c10 refers to a dead (removed) revision in file `Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/RingtoetsApplicationPluginTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 47ddc19835a668e6c1c5edad4a7bec58e2200c10 refers to a dead (removed) revision in file `Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/RingtoetsGuiPluginTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag aa5c3620f316831e71797c558a13a0b73a8109df refers to a dead (removed) revision in file `Ringtoets/Piping/src/Ringtoets.Piping.Data/AssessmentSection.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/Piping/src/Ringtoets.Piping.Data/Ringtoets.Piping.Data.csproj =================================================================== diff -u -r79b1cdcf9dcdbe4c015f5fc6b42605a00386b120 -raa5c3620f316831e71797c558a13a0b73a8109df --- Ringtoets/Piping/src/Ringtoets.Piping.Data/Ringtoets.Piping.Data.csproj (.../Ringtoets.Piping.Data.csproj) (revision 79b1cdcf9dcdbe4c015f5fc6b42605a00386b120) +++ Ringtoets/Piping/src/Ringtoets.Piping.Data/Ringtoets.Piping.Data.csproj (.../Ringtoets.Piping.Data.csproj) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -86,7 +86,6 @@ Resources.resx - Fisheye: Tag aa5c3620f316831e71797c558a13a0b73a8109df refers to a dead (removed) revision in file `Ringtoets/Piping/src/Ringtoets.Piping.Forms/Extensions/ContextMenuStripExtensions.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag aa5c3620f316831e71797c558a13a0b73a8109df refers to a dead (removed) revision in file `Ringtoets/Piping/src/Ringtoets.Piping.Forms/NodePresenters/AssessmentSectionNodePresenter.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/NodePresenters/PipingCalculationInputsNodePresenter.cs =================================================================== diff -u -r1efcd2277f5a38d44a78e4a9286eec35134fe8dd -raa5c3620f316831e71797c558a13a0b73a8109df --- Ringtoets/Piping/src/Ringtoets.Piping.Forms/NodePresenters/PipingCalculationInputsNodePresenter.cs (.../PipingCalculationInputsNodePresenter.cs) (revision 1efcd2277f5a38d44a78e4a9286eec35134fe8dd) +++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/NodePresenters/PipingCalculationInputsNodePresenter.cs (.../PipingCalculationInputsNodePresenter.cs) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -1,13 +1,11 @@ using System; using System.Collections; -using System.ComponentModel; using System.Windows.Forms; using Core.Common.Base.Workflow; using Core.Common.Controls; -using Core.Common.Utils.Collections; +using Ringtoets.Common.Forms.Extensions; using Ringtoets.Piping.Data; -using Ringtoets.Piping.Forms.Extensions; using Ringtoets.Piping.Service; using Ringtoets.Piping.Forms.PresentationObjects; @@ -59,7 +57,7 @@ protected override ContextMenuStrip GetContextMenu(ITreeNode sender, PipingCalculationInputs nodeData) { - PipingData pipingData = ((PipingCalculationInputs) nodeData).PipingData; + PipingData pipingData = nodeData.PipingData; var contextMenu = new ContextMenuStrip(); contextMenu.AddMenuItem(Resources.Validate, Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/NodePresenters/PipingFailureMechanismNodePresenter.cs =================================================================== diff -u -r433c616fe5bea47bcc0645eb61991623530e337e -raa5c3620f316831e71797c558a13a0b73a8109df --- Ringtoets/Piping/src/Ringtoets.Piping.Forms/NodePresenters/PipingFailureMechanismNodePresenter.cs (.../PipingFailureMechanismNodePresenter.cs) (revision 433c616fe5bea47bcc0645eb61991623530e337e) +++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/NodePresenters/PipingFailureMechanismNodePresenter.cs (.../PipingFailureMechanismNodePresenter.cs) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -1,14 +1,12 @@ using System; using System.Collections; -using System.ComponentModel; using System.Linq; using System.Windows.Forms; using Core.Common.Base.Workflow; using Core.Common.Controls; -using Core.Common.Utils.Collections; +using Ringtoets.Common.Forms.Extensions; using Ringtoets.Piping.Data; -using Ringtoets.Piping.Forms.Extensions; using Ringtoets.Piping.Forms.Helpers; using Ringtoets.Piping.Forms.PresentationObjects; using Ringtoets.Piping.Forms.Properties; @@ -93,20 +91,5 @@ return rootMenu; } - - protected override bool CanRemove(object parentNodeData, PipingFailureMechanism nodeData) - { - return true; - } - - protected override bool RemoveNodeData(object parentNodeData, PipingFailureMechanism nodeData) - { - var assessmentSection = (AssessmentSection)parentNodeData; - - assessmentSection.ClearPipingFailureMechanism(); - assessmentSection.NotifyObservers(); - - return true; - } } } \ No newline at end of file Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/NodePresenters/PipingSoilProfileCollectionNodePresenter.cs =================================================================== diff -u -rf7d48349feba2a41391fac27dc3fef3028df091d -raa5c3620f316831e71797c558a13a0b73a8109df --- Ringtoets/Piping/src/Ringtoets.Piping.Forms/NodePresenters/PipingSoilProfileCollectionNodePresenter.cs (.../PipingSoilProfileCollectionNodePresenter.cs) (revision f7d48349feba2a41391fac27dc3fef3028df091d) +++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/NodePresenters/PipingSoilProfileCollectionNodePresenter.cs (.../PipingSoilProfileCollectionNodePresenter.cs) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -5,8 +5,9 @@ using System.Linq; using System.Windows.Forms; using Core.Common.Controls; + +using Ringtoets.Common.Forms.Extensions; using Ringtoets.Piping.Data; -using Ringtoets.Piping.Forms.Extensions; using Ringtoets.Piping.Forms.Properties; namespace Ringtoets.Piping.Forms.NodePresenters Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/NodePresenters/PipingSurfaceLineCollectionNodePresenter.cs =================================================================== diff -u -rd6de3bdcd7e2211019e39ddf883926fb8d7b13bd -raa5c3620f316831e71797c558a13a0b73a8109df --- Ringtoets/Piping/src/Ringtoets.Piping.Forms/NodePresenters/PipingSurfaceLineCollectionNodePresenter.cs (.../PipingSurfaceLineCollectionNodePresenter.cs) (revision d6de3bdcd7e2211019e39ddf883926fb8d7b13bd) +++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/NodePresenters/PipingSurfaceLineCollectionNodePresenter.cs (.../PipingSurfaceLineCollectionNodePresenter.cs) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -7,9 +7,10 @@ using System.Windows.Forms; using Core.Common.Controls; using Core.Common.Utils.Collections; + +using Ringtoets.Common.Forms.Extensions; using Ringtoets.Piping.Data; -using Ringtoets.Piping.Forms.Extensions; using Ringtoets.Piping.Forms.Properties; namespace Ringtoets.Piping.Forms.NodePresenters Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/Properties/Resources.Designer.cs =================================================================== diff -u -rd6de3bdcd7e2211019e39ddf883926fb8d7b13bd -raa5c3620f316831e71797c558a13a0b73a8109df --- Ringtoets/Piping/src/Ringtoets.Piping.Forms/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision d6de3bdcd7e2211019e39ddf883926fb8d7b13bd) +++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34209 +// Runtime Version:4.0.30319.18444 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -61,80 +61,6 @@ } /// - /// Looks up a localized string similar to Naam van het toetstraject.. - /// - public static string AssessmentSection_Name_Description { - get { - return ResourceManager.GetString("AssessmentSection_Name_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Naam. - /// - public static string AssessmentSection_Name_DisplayName { - get { - return ResourceManager.GetString("AssessmentSection_Name_DisplayName", resourceCulture); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - public static System.Drawing.Bitmap AssessmentSectionFolderIcon { - get { - object obj = ResourceManager.GetObject("AssessmentSectionFolderIcon", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized string similar to Voeg piping faalmechanisme toe. - /// - public static string AssessmentSectionNodePresenter_ContextMenu_Add_PipingFailureMechanism { - get { - return ResourceManager.GetString("AssessmentSectionNodePresenter_ContextMenu_Add_PipingFailureMechanism", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Start een nieuwe piping toetsing voor dit project.. - /// - public static string AssessmentSectionNodePresenter_ContextMenu_Add_PipingFailureMechanism_Tooltip { - get { - return ResourceManager.GetString("AssessmentSectionNodePresenter_ContextMenu_Add_PipingFailureMechanism_Tooltip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Kan geen nieuwe piping toetsing starten, omdat er al een piping toetsing is gestart voor dit project.. - /// - public static string AssessmentSectionNodePresenter_ContextMenu_PipingFailureMechanism_Already_Added_Tooltip { - get { - return ResourceManager.GetString("AssessmentSectionNodePresenter_ContextMenu_PipingFailureMechanism_Already_Added_T" + - "ooltip", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Algemeen. - /// - public static string AssessmentSectionProperties_Category { - get { - return ResourceManager.GetString("AssessmentSectionProperties_Category", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Toetstraject. - /// - public static string AssessmentSectionProperties_DisplayName { - get { - return ResourceManager.GetString("AssessmentSectionProperties_DisplayName", resourceCulture); - } - } - - /// /// Looks up a localized string similar to Berekenen. /// public static string Calculate { Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/Properties/Resources.resx =================================================================== diff -u -rd6de3bdcd7e2211019e39ddf883926fb8d7b13bd -raa5c3620f316831e71797c558a13a0b73a8109df --- Ringtoets/Piping/src/Ringtoets.Piping.Forms/Properties/Resources.resx (.../Resources.resx) (revision d6de3bdcd7e2211019e39ddf883926fb8d7b13bd) +++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/Properties/Resources.resx (.../Resources.resx) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -307,27 +307,12 @@ Dwarsdoorsneden - - ..\Resources\folder-stand.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - Naam van het toetstraject. - - - Naam - - - Toetstraject - Faalmechanisme piping ..\Resources\u48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - Voeg piping faalmechanisme toe - Valideren @@ -340,12 +325,6 @@ Importeer nieuwe dwarsdoorsnedes van een *.csv bestand. - - Start een nieuwe piping toetsing voor dit project. - - - Kan geen nieuwe piping toetsing starten, omdat er al een piping toetsing is gestart voor dit project. - Ondergrondprofielen @@ -490,9 +469,6 @@ Verschoven lognormaal - - Algemeen - Kan node uit boom van type {0} niet hernoemen. Fisheye: Tag aa5c3620f316831e71797c558a13a0b73a8109df refers to a dead (removed) revision in file `Ringtoets/Piping/src/Ringtoets.Piping.Forms/PropertyClasses/AssessmentSectionProperties.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/Ringtoets.Piping.Forms.csproj =================================================================== diff -u -r79b1cdcf9dcdbe4c015f5fc6b42605a00386b120 -raa5c3620f316831e71797c558a13a0b73a8109df --- Ringtoets/Piping/src/Ringtoets.Piping.Forms/Ringtoets.Piping.Forms.csproj (.../Ringtoets.Piping.Forms.csproj) (revision 79b1cdcf9dcdbe4c015f5fc6b42605a00386b120) +++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/Ringtoets.Piping.Forms.csproj (.../Ringtoets.Piping.Forms.csproj) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -60,7 +60,6 @@ Properties\GlobalAssembly.cs - @@ -70,7 +69,6 @@ - @@ -82,7 +80,6 @@ - @@ -121,6 +118,10 @@ Core.Common.Version False + + {4d840673-3812-4338-a352-84854e32b8a0} + Ringtoets.Common.Forms + {d64e4f0e-e341-496f-82b2-941ad202b4e3} Ringtoets.Piping.Calculation Index: Ringtoets/Piping/src/Ringtoets.Piping.Plugin/FileImporter/PipingSoilProfilesImporter.cs =================================================================== diff -u -r433c616fe5bea47bcc0645eb61991623530e337e -raa5c3620f316831e71797c558a13a0b73a8109df --- Ringtoets/Piping/src/Ringtoets.Piping.Plugin/FileImporter/PipingSoilProfilesImporter.cs (.../PipingSoilProfilesImporter.cs) (revision 433c616fe5bea47bcc0645eb61991623530e337e) +++ Ringtoets/Piping/src/Ringtoets.Piping.Plugin/FileImporter/PipingSoilProfilesImporter.cs (.../PipingSoilProfilesImporter.cs) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -7,7 +7,8 @@ using Ringtoets.Piping.Data; using Ringtoets.Piping.IO.Exceptions; using Ringtoets.Piping.IO.SoilProfile; -using RingtoetsFormsResources = Ringtoets.Piping.Forms.Properties.Resources; +using PipingFormsResources = Ringtoets.Piping.Forms.Properties.Resources; +using RingtoetsFormsResources = Ringtoets.Common.Forms.Properties.Resources; using ApplicationResources = Ringtoets.Piping.Plugin.Properties.Resources; namespace Ringtoets.Piping.Plugin.FileImporter @@ -23,23 +24,23 @@ { get { - return RingtoetsFormsResources.PipingSoilProfilesCollection_DisplayName; + return PipingFormsResources.PipingSoilProfilesCollection_DisplayName; } } public string Category { get { - return RingtoetsFormsResources.AssessmentSectionProperties_Category; + return RingtoetsFormsResources.Ringtoets_Category; } } public Bitmap Image { get { - return RingtoetsFormsResources.PipingSoilProfileIcon; + return PipingFormsResources.PipingSoilProfileIcon; } } @@ -67,7 +68,7 @@ get { return String.Format("{0} {1} (*.soil)|*.soil", - RingtoetsFormsResources.PipingSoilProfilesCollection_DisplayName, ApplicationResources.Soil_file_name); + PipingFormsResources.PipingSoilProfilesCollection_DisplayName, ApplicationResources.Soil_file_name); } } Index: Ringtoets/Piping/src/Ringtoets.Piping.Plugin/FileImporter/PipingSurfaceLinesCsvImporter.cs =================================================================== diff -u -r433c616fe5bea47bcc0645eb61991623530e337e -raa5c3620f316831e71797c558a13a0b73a8109df --- Ringtoets/Piping/src/Ringtoets.Piping.Plugin/FileImporter/PipingSurfaceLinesCsvImporter.cs (.../PipingSurfaceLinesCsvImporter.cs) (revision 433c616fe5bea47bcc0645eb61991623530e337e) +++ Ringtoets/Piping/src/Ringtoets.Piping.Plugin/FileImporter/PipingSurfaceLinesCsvImporter.cs (.../PipingSurfaceLinesCsvImporter.cs) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -10,7 +10,8 @@ using Ringtoets.Piping.IO; using Ringtoets.Piping.IO.Exceptions; -using RingtoetsFormsResources = Ringtoets.Piping.Forms.Properties.Resources; +using PipingFormsResources = Ringtoets.Piping.Forms.Properties.Resources; +using RingtoetsFormsResources = Ringtoets.Common.Forms.Properties.Resources; using ApplicationResources = Ringtoets.Piping.Plugin.Properties.Resources; namespace Ringtoets.Piping.Plugin.FileImporter @@ -33,23 +34,23 @@ { get { - return RingtoetsFormsResources.PipingSurfaceLinesCollection_DisplayName; + return PipingFormsResources.PipingSurfaceLinesCollection_DisplayName; } } public string Category { get { - return RingtoetsFormsResources.AssessmentSectionProperties_Category; + return RingtoetsFormsResources.Ringtoets_Category; } } public Bitmap Image { get { - return RingtoetsFormsResources.PipingSurfaceLineIcon; + return PipingFormsResources.PipingSurfaceLineIcon; } } @@ -77,7 +78,7 @@ get { return String.Format("{0} {1} (*.csv)|*.csv", - RingtoetsFormsResources.PipingSurfaceLinesCollection_DisplayName, ApplicationResources.Csv_file_name); + PipingFormsResources.PipingSurfaceLinesCollection_DisplayName, ApplicationResources.Csv_file_name); } } Index: Ringtoets/Piping/src/Ringtoets.Piping.Plugin/PipingFileImporterProvider.cs =================================================================== diff -u --- Ringtoets/Piping/src/Ringtoets.Piping.Plugin/PipingFileImporterProvider.cs (revision 0) +++ Ringtoets/Piping/src/Ringtoets.Piping.Plugin/PipingFileImporterProvider.cs (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -0,0 +1,23 @@ +using System.Collections.Generic; + +using Core.Common.Base; + +using Ringtoets.Piping.Plugin.FileImporter; + +namespace Ringtoets.Piping.Plugin +{ + /// + /// Class providing all file imported related to piping classes. + /// + public static class PipingFileImporterProvider + { + /// + /// Gets the file importers available for Piping related data. + /// + public static IEnumerable GetFileImporters() + { + yield return new PipingSurfaceLinesCsvImporter(); + yield return new PipingSoilProfilesImporter(); + } + } +} \ No newline at end of file Index: Ringtoets/Piping/src/Ringtoets.Piping.Plugin/PipingGuiPlugin.cs =================================================================== diff -u --- Ringtoets/Piping/src/Ringtoets.Piping.Plugin/PipingGuiPlugin.cs (revision 0) +++ Ringtoets/Piping/src/Ringtoets.Piping.Plugin/PipingGuiPlugin.cs (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -0,0 +1,55 @@ +using System.Collections.Generic; +using Core.Common.Controls; +using Core.Common.Gui; +using Core.Common.Gui.Forms; + +using Ringtoets.Piping.Data; + +using Ringtoets.Piping.Forms.NodePresenters; +using Ringtoets.Piping.Forms.PresentationObjects; +using Ringtoets.Piping.Forms.PropertyClasses; + +namespace Ringtoets.Piping.Plugin +{ + public class PipingGuiPlugin : GuiPlugin + { + public override IRibbonCommandHandler RibbonCommandHandler + { + get + { + return new RingtoetsRibbon(); + } + } + + public override IEnumerable GetPropertyInfos() + { + yield return new PropertyInfo(); + yield return new PropertyInfo(); + yield return new PropertyInfo(); + yield return new PropertyInfo(); + } + + public override IEnumerable GetProjectTreeViewNodePresenters() + { + yield return new PipingCalculationInputsNodePresenter + { + RunActivityAction = Gui.Application.ActivityRunner.Enqueue + }; + yield return new PipingFailureMechanismNodePresenter + { + RunActivityAction = Gui.Application.ActivityRunner.Enqueue + }; + yield return new PipingSurfaceLineCollectionNodePresenter + { + ImportSurfaceLinesAction = Gui.CommandHandler.ImportToGuiSelection + }; + yield return new PipingSurfaceLineNodePresenter(); + yield return new PipingSoilProfileCollectionNodePresenter + { + ImportSoilProfilesAction = Gui.CommandHandler.ImportToGuiSelection + }; + yield return new PipingSoilProfileNodePresenter(); + yield return new PipingOutputNodePresenter(); + } + } +} \ No newline at end of file Index: Ringtoets/Piping/src/Ringtoets.Piping.Plugin/Ringtoets.Piping.Plugin.csproj =================================================================== diff -u -r79b1cdcf9dcdbe4c015f5fc6b42605a00386b120 -raa5c3620f316831e71797c558a13a0b73a8109df --- Ringtoets/Piping/src/Ringtoets.Piping.Plugin/Ringtoets.Piping.Plugin.csproj (.../Ringtoets.Piping.Plugin.csproj) (revision 79b1cdcf9dcdbe4c015f5fc6b42605a00386b120) +++ Ringtoets/Piping/src/Ringtoets.Piping.Plugin/Ringtoets.Piping.Plugin.csproj (.../Ringtoets.Piping.Plugin.csproj) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -78,14 +78,14 @@ + True True Resources.resx - - + RingtoetsRibbon.xaml @@ -112,6 +112,10 @@ Core.Common.Version False + + {4d840673-3812-4338-a352-84854e32b8a0} + Ringtoets.Common.Forms + {d64e4f0e-e341-496f-82b2-941ad202b4e3} Ringtoets.Piping.Calculation Fisheye: Tag aa5c3620f316831e71797c558a13a0b73a8109df refers to a dead (removed) revision in file `Ringtoets/Piping/src/Ringtoets.Piping.Plugin/RingtoetsApplicationPlugin.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag aa5c3620f316831e71797c558a13a0b73a8109df refers to a dead (removed) revision in file `Ringtoets/Piping/src/Ringtoets.Piping.Plugin/RingtoetsGuiPlugin.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag aa5c3620f316831e71797c558a13a0b73a8109df refers to a dead (removed) revision in file `Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/AssessmentSectionTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/Ringtoets.Piping.Data.Test.csproj =================================================================== diff -u -r79b1cdcf9dcdbe4c015f5fc6b42605a00386b120 -raa5c3620f316831e71797c558a13a0b73a8109df --- Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/Ringtoets.Piping.Data.Test.csproj (.../Ringtoets.Piping.Data.Test.csproj) (revision 79b1cdcf9dcdbe4c015f5fc6b42605a00386b120) +++ Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/Ringtoets.Piping.Data.Test.csproj (.../Ringtoets.Piping.Data.Test.csproj) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -75,7 +75,6 @@ - Fisheye: Tag aa5c3620f316831e71797c558a13a0b73a8109df refers to a dead (removed) revision in file `Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/Extensions/ContextMenuStripExtensionsTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag aa5c3620f316831e71797c558a13a0b73a8109df refers to a dead (removed) revision in file `Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/NodePresenters/AssessmentSectionNodePresenterTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/NodePresenters/PipingFailureMechanismNodePresenterTest.cs =================================================================== diff -u -rd6de3bdcd7e2211019e39ddf883926fb8d7b13bd -raa5c3620f316831e71797c558a13a0b73a8109df --- Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/NodePresenters/PipingFailureMechanismNodePresenterTest.cs (.../PipingFailureMechanismNodePresenterTest.cs) (revision d6de3bdcd7e2211019e39ddf883926fb8d7b13bd) +++ Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/NodePresenters/PipingFailureMechanismNodePresenterTest.cs (.../PipingFailureMechanismNodePresenterTest.cs) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -414,39 +414,35 @@ } [Test] - public void CanRemove_PipingFailureMechanism_ReturnTrue() + public void CanRemove_Always_ReturnFalse() { // Setup var mocks = new MockRepository(); - var dataMock = mocks.StrictMock(); + var parentNodeDataMock = mocks.StrictMock(); var nodeMock = mocks.StrictMock(); mocks.ReplayAll(); var nodePresenter = new PipingFailureMechanismNodePresenter(); // Call - bool removalAllowed = nodePresenter.CanRemove(dataMock, nodeMock); + bool removalAllowed = nodePresenter.CanRemove(parentNodeDataMock, nodeMock); // Assert - Assert.IsTrue(removalAllowed); + Assert.IsFalse(removalAllowed); mocks.VerifyAll(); // Expect no calls on arguments } [Test] public void RemoveNodeData_PipingFailureMechanism_PipingFailureMechanismRemovedFromAssessmentSection() { // Setup - var assessmentSection = new AssessmentSection(); - assessmentSection.InitializePipingFailureMechanism(); - var nodePresenter = new PipingFailureMechanismNodePresenter(); // Call - bool removalSuccesful = nodePresenter.RemoveNodeData(assessmentSection, new PipingFailureMechanism()); + TestDelegate call = () => nodePresenter.RemoveNodeData(new object(), new PipingFailureMechanism()); // Assert - Assert.IsTrue(removalSuccesful); - Assert.IsNull(assessmentSection.PipingFailureMechanism); + Assert.Throws(call); } [Test] Fisheye: Tag aa5c3620f316831e71797c558a13a0b73a8109df refers to a dead (removed) revision in file `Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/PropertyClasses/AssessmentSectionPropertiesTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/Ringtoets.Piping.Forms.Test.csproj =================================================================== diff -u -r79b1cdcf9dcdbe4c015f5fc6b42605a00386b120 -raa5c3620f316831e71797c558a13a0b73a8109df --- Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/Ringtoets.Piping.Forms.Test.csproj (.../Ringtoets.Piping.Forms.Test.csproj) (revision 79b1cdcf9dcdbe4c015f5fc6b42605a00386b120) +++ Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/Ringtoets.Piping.Forms.Test.csproj (.../Ringtoets.Piping.Forms.Test.csproj) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -54,7 +54,6 @@ - @@ -65,14 +64,12 @@ - - Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/FileImporter/PipingSoilProfilesImporterTest.cs =================================================================== diff -u -r433c616fe5bea47bcc0645eb61991623530e337e -raa5c3620f316831e71797c558a13a0b73a8109df --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/FileImporter/PipingSoilProfilesImporterTest.cs (.../PipingSoilProfilesImporterTest.cs) (revision 433c616fe5bea47bcc0645eb61991623530e337e) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/FileImporter/PipingSoilProfilesImporterTest.cs (.../PipingSoilProfilesImporterTest.cs) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -11,7 +11,8 @@ using Ringtoets.Piping.Data; using Ringtoets.Piping.Plugin.FileImporter; -using RingtoetsFormsResources = Ringtoets.Piping.Forms.Properties.Resources; +using PipingFormsResources = Ringtoets.Piping.Forms.Properties.Resources; +using RingtoetsFormsResources = Ringtoets.Common.Forms.Properties.Resources; using ApplicationResources = Ringtoets.Piping.Plugin.Properties.Resources; using RingtoetsIOResources = Ringtoets.Piping.IO.Properties.Resources; @@ -34,15 +35,15 @@ { // Prepare var expectedFileFilter = String.Format("{0} {1} (*.soil)|*.soil", - RingtoetsFormsResources.PipingSoilProfilesCollection_DisplayName, ApplicationResources.Soil_file_name); + PipingFormsResources.PipingSoilProfilesCollection_DisplayName, ApplicationResources.Soil_file_name); // Call var importer = new PipingSoilProfilesImporter(); // Assert Assert.IsInstanceOf(importer); - Assert.AreEqual(RingtoetsFormsResources.PipingSoilProfilesCollection_DisplayName, importer.Name); - Assert.AreEqual(RingtoetsFormsResources.AssessmentSectionProperties_Category, importer.Category); + Assert.AreEqual(PipingFormsResources.PipingSoilProfilesCollection_DisplayName, importer.Name); + Assert.AreEqual(RingtoetsFormsResources.Ringtoets_Category, importer.Category); Assert.AreEqual(16, importer.Image.Width); Assert.AreEqual(16, importer.Image.Height); CollectionAssert.AreEqual(new[] { typeof(ICollection) }, importer.SupportedItemTypes); Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/FileImporter/PipingSurfaceLineCsvImporterTest.cs =================================================================== diff -u -r433c616fe5bea47bcc0645eb61991623530e337e -raa5c3620f316831e71797c558a13a0b73a8109df --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/FileImporter/PipingSurfaceLineCsvImporterTest.cs (.../PipingSurfaceLineCsvImporterTest.cs) (revision 433c616fe5bea47bcc0645eb61991623530e337e) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/FileImporter/PipingSurfaceLineCsvImporterTest.cs (.../PipingSurfaceLineCsvImporterTest.cs) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -13,8 +13,9 @@ using Ringtoets.Piping.IO.Test.TestHelpers; using Ringtoets.Piping.Plugin.FileImporter; -using RingtoetsFormsResources = Ringtoets.Piping.Forms.Properties.Resources; -using RingtoetsIOResources = Ringtoets.Piping.IO.Properties.Resources; +using PipingFormsResources = Ringtoets.Piping.Forms.Properties.Resources; +using PipingIOResources = Ringtoets.Piping.IO.Properties.Resources; +using RingtoetsFormsResources = Ringtoets.Common.Forms.Properties.Resources; using ApplicationResources = Ringtoets.Piping.Plugin.Properties.Resources; namespace Ringtoets.Piping.Plugin.Test.FileImporter @@ -32,14 +33,14 @@ // Assert Assert.IsInstanceOf(importer); - Assert.AreEqual(RingtoetsFormsResources.PipingSurfaceLinesCollection_DisplayName, importer.Name); - Assert.AreEqual(RingtoetsFormsResources.AssessmentSectionProperties_Category, importer.Category); + Assert.AreEqual(PipingFormsResources.PipingSurfaceLinesCollection_DisplayName, importer.Name); + Assert.AreEqual(RingtoetsFormsResources.Ringtoets_Category, importer.Category); Assert.AreEqual(16, importer.Image.Width); Assert.AreEqual(16, importer.Image.Height); CollectionAssert.AreEqual(new[] { typeof(ICollection) }, importer.SupportedItemTypes); Assert.IsFalse(importer.CanImportOnRootLevel); var expectedFileFilter = String.Format("{0} {1} (*.csv)|*.csv", - RingtoetsFormsResources.PipingSurfaceLinesCollection_DisplayName, ApplicationResources.Csv_file_name); + PipingFormsResources.PipingSurfaceLinesCollection_DisplayName, ApplicationResources.Csv_file_name); Assert.AreEqual(expectedFileFilter, importer.FileFilter); Assert.IsNull(importer.TargetDataDirectory); Assert.IsFalse(importer.ShouldCancel); @@ -257,7 +258,7 @@ Action call = () => importedItem = importer.ImportItem(corruptPath, observableSurfaceLinesList); // Assert - var internalErrorMessage = String.Format(RingtoetsIOResources.Error_Path_cannot_contain_characters_0_, + var internalErrorMessage = String.Format(PipingIOResources.Error_Path_cannot_contain_characters_0_, String.Join(", ", Path.GetInvalidFileNameChars())); var expectedLogMessage = string.Format(ApplicationResources.PipingSurfaceLinesCsvImporter_Critical_error_reading_File_0_Cause_1_, corruptPath, internalErrorMessage); @@ -289,7 +290,7 @@ Action call = () => importedItem = importer.ImportItem(corruptPath, observableSurfaceLinesList); // Assert - var internalErrorMessage = String.Format(RingtoetsIOResources.Error_File_0_does_not_exist, + var internalErrorMessage = String.Format(PipingIOResources.Error_File_0_does_not_exist, corruptPath); var expectedLogMessage = string.Format(ApplicationResources.PipingSurfaceLinesCsvImporter_Critical_error_reading_File_0_Cause_1_, corruptPath, internalErrorMessage); @@ -321,7 +322,7 @@ Action call = () => importedItem = importer.ImportItem(corruptPath, observableSurfaceLinesList); // Assert - var internalErrorMessage = String.Format(RingtoetsIOResources.Error_File_0_empty, + var internalErrorMessage = String.Format(PipingIOResources.Error_File_0_empty, corruptPath); var expectedLogMessage = string.Format(ApplicationResources.PipingSurfaceLinesCsvImporter_Critical_error_reading_File_0_Cause_1_, corruptPath, internalErrorMessage); @@ -353,7 +354,7 @@ Action call = () => importedItem = importer.ImportItem(corruptPath, observableSurfaceLinesList); // Assert - var internalErrorMessage = String.Format(RingtoetsIOResources.PipingSurfaceLinesCsvReader_File_0_invalid_header, + var internalErrorMessage = String.Format(PipingIOResources.PipingSurfaceLinesCsvReader_File_0_invalid_header, corruptPath); var expectedLogMessage = string.Format(ApplicationResources.PipingSurfaceLinesCsvImporter_Critical_error_reading_File_0_Cause_1_, corruptPath, internalErrorMessage); @@ -394,7 +395,7 @@ Action call = () => importedItem = importer.ImportItem(copyTargetPath, observableSurfaceLinesList); // Assert - var internalErrorMessage = String.Format(RingtoetsIOResources.Error_File_0_does_not_exist, + var internalErrorMessage = String.Format(PipingIOResources.Error_File_0_does_not_exist, copyTargetPath); var expectedLogMessage = string.Format(ApplicationResources.PipingSurfaceLinesCsvImporter_Critical_error_reading_File_0_Cause_1_, copyTargetPath, internalErrorMessage); @@ -441,7 +442,7 @@ Action call = () => importedItem = importer.ImportItem(corruptPath, observableSurfaceLinesList); // Assert - var internalErrorMessage = String.Format(RingtoetsIOResources.Error_File_0_has_not_double_SurfaceLineName_1_, + var internalErrorMessage = String.Format(PipingIOResources.Error_File_0_has_not_double_SurfaceLineName_1_, corruptPath, "InvalidRow"); var expectedLogMessage = string.Format(ApplicationResources.PipingSurfaceLinesCsvImporter_ReadPipingSurfaceLines_Parse_error_File_0_SurfaceLinesNumber_1_Message_2_, corruptPath, 2, internalErrorMessage); @@ -485,7 +486,7 @@ Action call = () => importedItem = importer.ImportItem(path, observableSurfaceLinesList); // Assert - var internalErrorMessage = String.Format(RingtoetsIOResources.PipingSurfaceLinesCsvReader_ReadLine_File_0_SurfaceLineName_1_has_reclining_geometry, + var internalErrorMessage = String.Format(PipingIOResources.PipingSurfaceLinesCsvReader_ReadLine_File_0_SurfaceLineName_1_has_reclining_geometry, path, "Rotterdam1"); var expectedLogMessage = string.Format(ApplicationResources.PipingSurfaceLinesCsvImporter_ReadPipingSurfaceLines_Parse_error_File_0_SurfaceLinesNumber_1_Message_2_, path, 1, internalErrorMessage); Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/PipingFileImporterProviderTest.cs =================================================================== diff -u --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/PipingFileImporterProviderTest.cs (revision 0) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/PipingFileImporterProviderTest.cs (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -0,0 +1,26 @@ +using System.Linq; + +using Core.Common.Base; + +using NUnit.Framework; + +using Ringtoets.Piping.Plugin.FileImporter; + +namespace Ringtoets.Piping.Plugin.Test +{ + [TestFixture] + public class PipingFileImporterProviderTest + { + [Test] + public void GetFileImporters_ReturnPipingImporters() + { + // Call + IFileImporter[] importers = PipingFileImporterProvider.GetFileImporters().ToArray(); + + // Assert + Assert.AreEqual(2, importers.Length); + Assert.AreEqual(1, importers.Count(i => i is PipingSurfaceLinesCsvImporter)); + Assert.AreEqual(1, importers.Count(i => i is PipingSoilProfilesImporter)); + } + } +} \ No newline at end of file Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/Ringtoets.Piping.Plugin.Test.csproj =================================================================== diff -u -r79b1cdcf9dcdbe4c015f5fc6b42605a00386b120 -raa5c3620f316831e71797c558a13a0b73a8109df --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/Ringtoets.Piping.Plugin.Test.csproj (.../Ringtoets.Piping.Plugin.Test.csproj) (revision 79b1cdcf9dcdbe4c015f5fc6b42605a00386b120) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/Ringtoets.Piping.Plugin.Test.csproj (.../Ringtoets.Piping.Plugin.Test.csproj) (revision aa5c3620f316831e71797c558a13a0b73a8109df) @@ -45,49 +45,32 @@ ..\..\..\..\lib\nunit.framework.dll - - ..\..\..\..\lib\Rhino.Mocks.dll - - + - - {3bbfd65b-b277-4e50-ae6d-bd24c3434609} Core.Common.Base - - {9a2d67e6-26ac-4d17-b11a-2b4372f2f572} - Core.Common.Controls - - - {30e4c2ae-719e-4d70-9fa9-668a9767fbfa} - Core.Common.Gui - - - {f49bd8b2-332a-4c91-a196-8cce0a2c7d98} - Core.Common.Utils - {d749ee4c-ce50-4c17-bf01-9a953028c126} Core.Common.TestUtils - - {d64e4f0e-e341-496f-82b2-941ad202b4e3} - Ringtoets.Piping.Calculation + + {4d840673-3812-4338-a352-84854e32b8a0} + Ringtoets.Common.Forms {ce994cc9-6f6a-48ac-b4be-02c30a21f4db} Fisheye: Tag aa5c3620f316831e71797c558a13a0b73a8109df refers to a dead (removed) revision in file `Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/RingtoetsApplicationPluginTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag aa5c3620f316831e71797c558a13a0b73a8109df refers to a dead (removed) revision in file `Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/RingtoetsGuiPluginTest.cs'. Fisheye: No comparison available. Pass `N' to diff?