예제 #1
0
        public void CreateHeaveCalculator_Always_ReturnsHeaveCalculator()
        {
            // Setup
            IPipingSubCalculatorFactory factory = PipingSubCalculatorFactory.Instance;

            // Call
            IHeaveCalculator calculator = factory.CreateHeaveCalculator();

            // Assert
            Assert.IsInstanceOf <HeaveCalculator>(calculator);
        }
예제 #2
0
        private IHeaveCalculator CreateHeaveCalculator()
        {
            IHeaveCalculator calculator = factory.CreateHeaveCalculator();

            calculator.SetIch(input.CriticalHeaveGradient);
            calculator.SetPhiExit(input.PiezometricHeadExit);
            calculator.SetDTotal(input.ThicknessCoverageLayer);
            calculator.SetPhiPolder(input.PhreaticLevelExit);
            calculator.SetRExit(input.DampingFactorExit);
            calculator.SetHExit(input.PhreaticLevelExit);

            return(calculator);
        }