private static IEnumerable <Product> ParseProducts(string[] inputLines, int currentLine, Rack rack) { var rackProductsLines = inputLines .Skip(currentLine) .Take(rack.Height); return(ParseProductsFromLines(rackProductsLines)); }
public void AddRack(Rack rack) { Racks.Add(rack); }