private static Spreadsheet CreateRawSpreadsheet(IEnumerable <string[]> rawData) { var spreadSheet = new Spreadsheet(); var rowIndex = InitialRowIndex; foreach (var row in rawData) { var columnLabel = InitialColumnLabel; foreach (var rawCell in row) { var key = CreateCellKey(columnLabel, rowIndex); var cell = Cell.Create(rawCell); spreadSheet.Add(key, cell); columnLabel++; } rowIndex++; } spreadSheet.Columns = rowIndex; return(spreadSheet); }