Fisheye: Tag cf31268a74ee4557e6ef9ccdcde7e5c48540ab8b refers to a dead (removed) revision in file `src/Plugins/Wti/Wti.Controller/PipingCalculationService.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag cf31268a74ee4557e6ef9ccdcde7e5c48540ab8b refers to a dead (removed) revision in file `src/Plugins/Wti/Wti.Controller/Properties/AssemblyInfo.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag cf31268a74ee4557e6ef9ccdcde7e5c48540ab8b refers to a dead (removed) revision in file `src/Plugins/Wti/Wti.Controller/Properties/Resources.Designer.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag cf31268a74ee4557e6ef9ccdcde7e5c48540ab8b refers to a dead (removed) revision in file `src/Plugins/Wti/Wti.Controller/Properties/Resources.resx'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag cf31268a74ee4557e6ef9ccdcde7e5c48540ab8b refers to a dead (removed) revision in file `src/Plugins/Wti/Wti.Controller/Wti.Service.csproj'.
Fisheye: No comparison available. Pass `N' to diff?
Index: src/Plugins/Wti/Wti.Service/PipingCalculationService.cs
===================================================================
diff -u
--- src/Plugins/Wti/Wti.Service/PipingCalculationService.cs (revision 0)
+++ src/Plugins/Wti/Wti.Service/PipingCalculationService.cs (revision cf31268a74ee4557e6ef9ccdcde7e5c48540ab8b)
@@ -0,0 +1,63 @@
+using System;
+using log4net;
+using Wti.Calculation.Piping;
+using Wti.Data;
+using Wti.Service.Properties;
+
+namespace Wti.Service
+{
+ ///
+ /// This class controls the and its .
+ /// Interactions from the are handles by this class.
+ ///
+ public static class PipingCalculationService
+ {
+ private static readonly ILog Logger = LogManager.GetLogger(typeof(PipingCalculationService));
+
+ ///
+ /// Performs a piping calculation based on the supplied and sets
+ /// to the if the calculation was successful.
+ ///
+ /// The to base the input for the calculation upon.
+ public static void Calculate(PipingData pipingData)
+ {
+ try
+ {
+ var input = new PipingCalculationInput(
+ pipingData.WaterVolumetricWeight,
+ pipingData.UpliftModelFactor,
+ pipingData.AssessmentLevel,
+ pipingData.PiezometricHeadExit,
+ pipingData.DampingFactorExit,
+ pipingData.PhreaticLevelExit,
+ pipingData.PiezometricHeadPolder,
+ pipingData.CriticalHeaveGradient,
+ pipingData.ThicknessCoverageLayer,
+ pipingData.SellmeijerModelFactor,
+ pipingData.SellmeijerReductionFactor,
+ pipingData.SeepageLength,
+ pipingData.SandParticlesVolumicWeight,
+ pipingData.WhitesDragCoefficient,
+ pipingData.Diameter70,
+ pipingData.DarcyPermeability,
+ pipingData.WaterKinematicViscosity,
+ pipingData.Gravity,
+ pipingData.ThicknessAquiferLayer,
+ pipingData.MeanDiameter70,
+ pipingData.BeddingAngle,
+ pipingData.ExitPointXCoordinate
+ );
+ var pipingCalculation = new PipingCalculation(input);
+ var pipingResult = pipingCalculation.Calculate();
+
+ pipingData.Output = new PipingOutput(pipingResult.UpliftZValue,
+ pipingResult.UpliftFactorOfSafety,
+ pipingResult.HeaveZValue, pipingResult.HeaveFactorOfSafety, pipingResult.SellmeijerZValue, pipingResult.SellmeijerFactorOfSafety);
+ }
+ catch (PipingCalculationException e)
+ {
+ Logger.Warn(String.Format(Resources.ErrorInPipingCalculation_0, e.Message));
+ }
+ }
+ }
+}
\ No newline at end of file
Index: src/Plugins/Wti/Wti.Service/Properties/AssemblyInfo.cs
===================================================================
diff -u
--- src/Plugins/Wti/Wti.Service/Properties/AssemblyInfo.cs (revision 0)
+++ src/Plugins/Wti/Wti.Service/Properties/AssemblyInfo.cs (revision cf31268a74ee4557e6ef9ccdcde7e5c48540ab8b)
@@ -0,0 +1,7 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("Wti.Service")]
+[assembly: AssemblyProduct("Wti.Service")]
+[assembly: Guid("3ad44406-356a-4ad1-b911-510da20d5430")]
\ No newline at end of file
Index: src/Plugins/Wti/Wti.Service/Properties/Resources.Designer.cs
===================================================================
diff -u
--- src/Plugins/Wti/Wti.Service/Properties/Resources.Designer.cs (revision 0)
+++ src/Plugins/Wti/Wti.Service/Properties/Resources.Designer.cs (revision cf31268a74ee4557e6ef9ccdcde7e5c48540ab8b)
@@ -0,0 +1,72 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.34209
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace Wti.Service.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("Wti.Service.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 Piping berekening niet gelukt: {0}.
+ ///
+ internal static string ErrorInPipingCalculation_0 {
+ get {
+ return ResourceManager.GetString("ErrorInPipingCalculation_0", resourceCulture);
+ }
+ }
+ }
+}
Index: src/Plugins/Wti/Wti.Service/Properties/Resources.resx
===================================================================
diff -u
--- src/Plugins/Wti/Wti.Service/Properties/Resources.resx (revision 0)
+++ src/Plugins/Wti/Wti.Service/Properties/Resources.resx (revision cf31268a74ee4557e6ef9ccdcde7e5c48540ab8b)
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ Piping berekening niet gelukt: {0}
+
+
\ No newline at end of file
Index: src/Plugins/Wti/Wti.Service/Wti.Service.csproj
===================================================================
diff -u
--- src/Plugins/Wti/Wti.Service/Wti.Service.csproj (revision 0)
+++ src/Plugins/Wti/Wti.Service/Wti.Service.csproj (revision cf31268a74ee4557e6ef9ccdcde7e5c48540ab8b)
@@ -0,0 +1,105 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {10B8D63D-87E8-46DF-ACA9-A8CF22EE8FB5}
+ Library
+ Properties
+ Wti.Service
+ Wti.Service
+ v4.0
+ 512
+
+
+ true
+ bin\Debug\
+ DEBUG;TRACE
+ full
+ x86
+ false
+ prompt
+ MinimumRecommendedRules.ruleset
+
+
+ bin\Release\
+ TRACE
+ true
+ pdbonly
+ x86
+ prompt
+ MinimumRecommendedRules.ruleset
+
+
+
+ False
+ ..\..\..\..\lib\log4net.dll
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties\GlobalAssembly.cs
+
+
+
+
+ True
+ True
+ Resources.resx
+
+
+
+
+ {3DBD23CE-5C4A-4A49-B51C-B268CB2B510E}
+ DelftTools.Controls.Swf
+
+
+ {9A2D67E6-26AC-4D17-B11A-2B4372F2F572}
+ DelftTools.Controls
+
+
+ {82b61d20-fd4b-49be-9252-5bf6e3ee4666}
+ DelftTools.Shell.Core
+
+
+ {c90b77da-e421-43cc-b82e-529651bc21ac}
+ Wti.Base
+
+
+ {D64E4F0E-E341-496F-82B2-941AD202B4E3}
+ Wti.Calculation
+
+
+ {CE994CC9-6F6A-48AC-B4BE-02C30A21F4DB}
+ Wti.Data
+
+
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Fisheye: Tag cf31268a74ee4557e6ef9ccdcde7e5c48540ab8b refers to a dead (removed) revision in file `test/Plugins/Wti/Wti.Controller.Test/PipingCalculationServiceTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag cf31268a74ee4557e6ef9ccdcde7e5c48540ab8b refers to a dead (removed) revision in file `test/Plugins/Wti/Wti.Controller.Test/Properties/AssemblyInfo.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag cf31268a74ee4557e6ef9ccdcde7e5c48540ab8b refers to a dead (removed) revision in file `test/Plugins/Wti/Wti.Controller.Test/Wti.Service.Test.csproj'.
Fisheye: No comparison available. Pass `N' to diff?
Index: test/Plugins/Wti/Wti.Service.Test/PipingCalculationServiceTest.cs
===================================================================
diff -u
--- test/Plugins/Wti/Wti.Service.Test/PipingCalculationServiceTest.cs (revision 0)
+++ test/Plugins/Wti/Wti.Service.Test/PipingCalculationServiceTest.cs (revision cf31268a74ee4557e6ef9ccdcde7e5c48540ab8b)
@@ -0,0 +1,58 @@
+using NUnit.Framework;
+using Wti.Calculation.Piping;
+using Wti.Data;
+
+namespace Wti.Service.Test
+{
+ public class PipingCalculationServiceTest
+ {
+ private readonly PipingData validPipingData = new PipingData
+ {
+ AssessmentLevel = 1.0,
+ BeddingAngle = 1.0,
+ CriticalHeaveGradient = 1.0,
+ DampingFactorExit = 1.0,
+ DarcyPermeability = 1.0,
+ Diameter70 = 1.0,
+ ExitPointXCoordinate = 1.0,
+ Gravity = 1.0,
+ MeanDiameter70 = 1.0,
+ PiezometricHeadExit = 1.0,
+ PiezometricHeadPolder = 1.0,
+ PhreaticLevelExit = 2.0,
+ SandParticlesVolumicWeight = 1.0,
+ SeepageLength = 1.0,
+ SellmeijerModelFactor = 1.0,
+ SellmeijerReductionFactor = 1.0,
+ ThicknessAquiferLayer = 1.0,
+ ThicknessCoverageLayer = 1.0,
+ UpliftModelFactor = 1.0,
+ WaterKinematicViscosity = 1.0,
+ WaterVolumetricWeight = 1.0,
+ WhitesDragCoefficient = 1.0
+ };
+
+ [Test]
+ public void Calculate_ValidPipingData_ShouldSetOutput()
+ {
+ // Call
+ PipingCalculationService.Calculate(validPipingData);
+
+ // Assert
+ Assert.NotNull(validPipingData.Output);
+ }
+
+ [Test]
+ public void Calculate_InValidPipingData_ThrowsException()
+ {
+ // Setup
+ var invalidPipingData = new PipingData();
+
+ // Call
+ TestDelegate testDelegate = () => PipingCalculationService.Calculate(invalidPipingData);
+
+ // Assert
+ Assert.Throws(testDelegate);
+ }
+ }
+}
\ No newline at end of file
Index: test/Plugins/Wti/Wti.Service.Test/Properties/AssemblyInfo.cs
===================================================================
diff -u
--- test/Plugins/Wti/Wti.Service.Test/Properties/AssemblyInfo.cs (revision 0)
+++ test/Plugins/Wti/Wti.Service.Test/Properties/AssemblyInfo.cs (revision cf31268a74ee4557e6ef9ccdcde7e5c48540ab8b)
@@ -0,0 +1,39 @@
+using System.Reflection;
+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("Wti.Service.Test")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("Wti.Service.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("2533df4d-d679-4225-90b8-ce6e8bc73ea8")]
+
+// 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")]
\ No newline at end of file
Index: test/Plugins/Wti/Wti.Service.Test/Wti.Service.Test.csproj
===================================================================
diff -u
--- test/Plugins/Wti/Wti.Service.Test/Wti.Service.Test.csproj (revision 0)
+++ test/Plugins/Wti/Wti.Service.Test/Wti.Service.Test.csproj (revision cf31268a74ee4557e6ef9ccdcde7e5c48540ab8b)
@@ -0,0 +1,88 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {D783543B-46A1-4848-A812-AF5A5259ED7E}
+ Library
+ Properties
+ Wti.Service.Test
+ Wti.Service.Test
+ v4.0
+ 512
+
+
+ true
+ bin\Debug\
+ DEBUG;TRACE
+ full
+ x86
+ prompt
+ MinimumRecommendedRules.ruleset
+
+
+ bin\Release\
+ TRACE
+ true
+ pdbonly
+ x86
+ prompt
+ MinimumRecommendedRules.ruleset
+
+
+
+ ..\..\..\..\lib\nunit.framework.dll
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {3DBD23CE-5C4A-4A49-B51C-B268CB2B510E}
+ DelftTools.Controls.Swf
+
+
+ {9A2D67E6-26AC-4D17-B11A-2B4372F2F572}
+ DelftTools.Controls
+
+
+ {82b61d20-fd4b-49be-9252-5bf6e3ee4666}
+ DelftTools.Shell.Core
+
+
+ {D64E4F0E-E341-496F-82B2-941AD202B4E3}
+ Wti.Calculation
+
+
+ {10B8D63D-87E8-46DF-ACA9-A8CF22EE8FB5}
+ Wti.Service
+
+
+ {CE994CC9-6F6A-48AC-B4BE-02C30A21F4DB}
+ Wti.Data
+
+
+ {7cd038e1-e111-4969-aced-22c5bd2974e1}
+ Wti.Forms
+
+
+
+
+
\ No newline at end of file