public void CreateUpliftCalculator_Always_ReturnsUpliftCalculator() { // Setup IPipingSubCalculatorFactory factory = PipingSubCalculatorFactory.Instance; // Call IUpliftCalculator calculator = factory.CreateUpliftCalculator(); // Assert Assert.IsInstanceOf <UpliftCalculator>(calculator); }
private IUpliftCalculator CreateUpliftCalculator() { double effectiveStress = DetermineEffectiveStressForOneLayerProfile(input.EffectiveThicknessCoverageLayer, input.SaturatedVolumicWeightOfCoverageLayer, input.WaterVolumetricWeight); IUpliftCalculator calculator = factory.CreateUpliftCalculator(); calculator.SetVolumetricWeightOfWater(input.WaterVolumetricWeight); calculator.SetModelFactorUplift(input.UpliftModelFactor); calculator.EffectiveStress = effectiveStress; calculator.SetHRiver(input.AssessmentLevel); calculator.SetPhiExit(input.PiezometricHeadExit); calculator.SetRExit(input.DampingFactorExit); calculator.SetHExit(input.PhreaticLevelExit); calculator.SetPhiPolder(input.PhreaticLevelExit); return(calculator); }