public decimal CalculateFuelNeededForFuel(decimal fuel)
        {
            decimal total        = 0;
            var     requiredFuel = _fuelRequirementsCalculator.Calculate(fuel);

            while (requiredFuel > 0)
            {
                total       += requiredFuel;
                requiredFuel = _fuelRequirementsCalculator.Calculate(requiredFuel);
            }

            return(total);
        }
Exemple #2
0
 public decimal CalculateFuelRequirements(IModule module)
 {
     return(_requirementsCalculator.Calculate(module.Mass));
 }