public int GetTotalSquareFeetOfWrappingPaperFromArray(BoxDimensions[] boxDimensions) { int total = 0; foreach (BoxDimensions boxDimension in boxDimensions) { total += GetTotalSquareFeetOfWrappingPaper(boxDimension.Length, boxDimension.Width, boxDimension.Height); } return total; }
public int GetTotalLenghtOfRibbonFromArray(BoxDimensions[] boxDimensions) { int total = 0; foreach (BoxDimensions boxDimension in boxDimensions) { total += GetTotalLenghtOfRibbon(boxDimension.Length, boxDimension.Width, boxDimension.Height); } return total; }