public double CalcSoilVolume(TankShape tankShape, double soilHeight) { ITank tank = GetTank(tankShape, TankProperties); double result = tank.CalcSoilVolume(soilHeight); return(result); }