Fisheye: Tag 0882ad7cd6c36603f7da9c400f44c6613a82bb33 refers to a dead (removed) revision in file `Migration/Console/src/Migration.Console/Application.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Migration/Console/src/Migration.Console/Migration.Console.csproj
===================================================================
diff -u -r2b087ce4a7c30f4fcf8ca1ed99af874c42c8ef19 -r0882ad7cd6c36603f7da9c400f44c6613a82bb33
--- Migration/Console/src/Migration.Console/Migration.Console.csproj (.../Migration.Console.csproj) (revision 2b087ce4a7c30f4fcf8ca1ed99af874c42c8ef19)
+++ Migration/Console/src/Migration.Console/Migration.Console.csproj (.../Migration.Console.csproj) (revision 0882ad7cd6c36603f7da9c400f44c6613a82bb33)
@@ -45,7 +45,7 @@
Properties\GlobalAssembly.cs
-
+
Index: Migration/Console/src/Migration.Console/RingtoetsMigrationTool.cs
===================================================================
diff -u
--- Migration/Console/src/Migration.Console/RingtoetsMigrationTool.cs (revision 0)
+++ Migration/Console/src/Migration.Console/RingtoetsMigrationTool.cs (revision 0882ad7cd6c36603f7da9c400f44c6613a82bb33)
@@ -0,0 +1,120 @@
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System.Linq;
+using Migration.Console.Properties;
+using SystemConsole = System.Console;
+
+namespace Migration.Console
+{
+ public static class RingtoetsMigrationTool
+ {
+ private const string commandMigrate = "--migrate";
+ private const string commandVersionSupported = "--supported";
+ private const string commandHelp = "--help";
+
+ public static void Main(string[] args)
+ {
+ string command = args.FirstOrDefault() ?? commandHelp;
+ switch (command)
+ {
+ case commandMigrate:
+ MigrateCommand(args);
+ break;
+ case commandVersionSupported:
+ IsVersionSupportedCommand(args);
+ break;
+ case commandHelp:
+ DisplayAllCommands();
+ break;
+ default:
+ {
+ InvalidCommand(command);
+ DisplayAllCommands();
+ break;
+ }
+ }
+ }
+
+ private static void DisplayAllCommands()
+ {
+ ConsoleHelper.WriteInfoLine(commandHelp
+ + "\t"
+ + Resources.CommandHelp_Command_0_Detailed, commandHelp);
+ ShowMigrateCommand();
+ ShowSupportedCommand();
+ }
+
+ #region Invalid Command
+
+ private static void InvalidCommand(string command)
+ {
+ ConsoleHelper.WriteErrorLine(Resources.CommandInvalid_Command_0_Is_not_valid, command);
+ SystemConsole.WriteLine("");
+ }
+
+ #endregion
+
+ #region Version Supported Command
+
+ private static void IsVersionSupportedCommand(string[] args)
+ {
+ if (args.Length != 2)
+ {
+ ConsoleHelper.WriteErrorLine(Resources.Command_0_Incorrect_number_of_parameters, commandVersionSupported);
+ SystemConsole.WriteLine("");
+ ShowSupportedCommand();
+ return;
+ }
+ }
+
+ private static void ShowSupportedCommand()
+ {
+ ConsoleHelper.WriteInfoLine(Resources.CommandSupported_Command_0_Brief
+ + "\t"
+ + Resources.CommandSupported_Detailed, commandVersionSupported);
+ }
+
+ #endregion
+
+ #region Migrate Command
+
+ private static void MigrateCommand(string[] args)
+ {
+ if (args.Length != 3)
+ {
+ ConsoleHelper.WriteErrorLine(Resources.Command_0_Incorrect_number_of_parameters, commandMigrate);
+ SystemConsole.WriteLine("");
+ ShowMigrateCommand();
+ return;
+ }
+ }
+
+ private static void ShowMigrateCommand()
+ {
+ ConsoleHelper.WriteInfoLine(Resources.CommandMigrate_Command_0_Brief
+ + "\t"
+ + Resources.CommandMigrate_Detailed, commandMigrate);
+ }
+
+ #endregion
+ }
+}
\ No newline at end of file
Fisheye: Tag 0882ad7cd6c36603f7da9c400f44c6613a82bb33 refers to a dead (removed) revision in file `Migration/Console/test/Migration.Console.Test/ConsoleOutput.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 0882ad7cd6c36603f7da9c400f44c6613a82bb33 refers to a dead (removed) revision in file `Migration/Console/test/Migration.Console.Test/ConsoleOutputTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Migration/Console/test/Migration.Console.Test/Migration.Console.Test.csproj
===================================================================
diff -u -r2b087ce4a7c30f4fcf8ca1ed99af874c42c8ef19 -r0882ad7cd6c36603f7da9c400f44c6613a82bb33
--- Migration/Console/test/Migration.Console.Test/Migration.Console.Test.csproj (.../Migration.Console.Test.csproj) (revision 2b087ce4a7c30f4fcf8ca1ed99af874c42c8ef19)
+++ Migration/Console/test/Migration.Console.Test/Migration.Console.Test.csproj (.../Migration.Console.Test.csproj) (revision 0882ad7cd6c36603f7da9c400f44c6613a82bb33)
@@ -56,8 +56,6 @@
Properties\GlobalAssembly.cs
-
-
@@ -71,6 +69,10 @@
{2E2C9B96-E72A-4C10-AA54-A5381FE30B0D}Migration.Console
+
+ {679D3CE6-0820-49CF-9D56-D1CF7F1B853A}
+ Migration.Console.TestUtil
+
+
+
+
\ No newline at end of file
Index: Migration/Console/test/Migration.Console.TestUtil/ConsoleOutput.cs
===================================================================
diff -u
--- Migration/Console/test/Migration.Console.TestUtil/ConsoleOutput.cs (revision 0)
+++ Migration/Console/test/Migration.Console.TestUtil/ConsoleOutput.cs (revision 0882ad7cd6c36603f7da9c400f44c6613a82bb33)
@@ -0,0 +1,78 @@
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using System.IO;
+using SystemConsole = System.Console;
+
+namespace Migration.Console.TestUtil
+{
+ ///
+ /// This class captures the output that is sent to .
+ ///
+ public class ConsoleOutput : IDisposable
+ {
+ private readonly StringWriter stringWriter;
+ private readonly TextWriter originalOutput;
+ private bool disposed;
+
+ ///
+ /// Creates a new instance of .
+ ///
+ public ConsoleOutput()
+ {
+ originalOutput = SystemConsole.Out;
+ stringWriter = new StringWriter();
+ SystemConsole.SetOut(stringWriter);
+ }
+
+ ///
+ /// Gets text that was sent to to (if any).
+ ///
+ /// The captured text.
+ public string GetConsoleOutput()
+ {
+ stringWriter.Flush();
+ return stringWriter.ToString();
+ }
+
+ public void Dispose()
+ {
+ Dispose(true);
+ GC.SuppressFinalize(this);
+ }
+
+ private void Dispose(bool disposing)
+ {
+ if (disposed)
+ {
+ return;
+ }
+
+ if (disposing)
+ {
+ SystemConsole.SetOut(originalOutput);
+ stringWriter?.Dispose();
+ }
+ disposed = true;
+ }
+ }
+}
\ No newline at end of file
Index: Migration/Console/test/Migration.Console.TestUtil/Migration.Console.TestUtil.csproj
===================================================================
diff -u -ra2906a804a7a6958ee8ca64f47020f881cd3590d -r0882ad7cd6c36603f7da9c400f44c6613a82bb33
--- Migration/Console/test/Migration.Console.TestUtil/Migration.Console.TestUtil.csproj (.../Migration.Console.TestUtil.csproj) (revision a2906a804a7a6958ee8ca64f47020f881cd3590d)
+++ Migration/Console/test/Migration.Console.TestUtil/Migration.Console.TestUtil.csproj (.../Migration.Console.TestUtil.csproj) (revision 0882ad7cd6c36603f7da9c400f44c6613a82bb33)
@@ -46,6 +46,7 @@
Properties\GlobalAssembly.cs
+