public Option <Dictionary <string, string> > GetCellsValue(Some <string> fileName, Some <IList <string> > cells) { var excelFile = _excelProvider.OpenFile(fileName); var worksheet = excelFile.Workbook.Worksheets.First(); var cellValues = cells.Flatten().Distinct().ToDictionary(cell => cell, cell => _excelProvider.ReadCell(worksheet, cell)); _excelProvider.CloseFile(excelFile); return(new Dictionary <string, string>(cellValues)); }