public double CalculateAverage(List <double> values, IAverage averagingMethod) { if (values == null) { throw new ArgumentNullException(nameof(values)); } return(averagingMethod.Average(values)); }
public String Execute() { return(cmd.Average()); }
public static int AverageFor(List <int> values, IAverage averageAlgorithm) { return(averageAlgorithm.Average(values)); }
private static double CalculateAverage(this IEnumerable <double> values, IAverage average) { return(average.Average()); }