private static IfspGlobalPriceLookup BuildIfspGlobalPriceLookup(IReadOnlyList <string> details, IDictionary <int, PropertyInfo> mappings)
        {
            var priceLookup = new IfspGlobalPriceLookup();

            for (var detailIndex = 0; detailIndex < details.Count; ++detailIndex)
            {
                var detail   = details[detailIndex];
                var property = mappings[detailIndex];
                property.SetValue(priceLookup, detail);
            }

            return(priceLookup);
        }
        private static IDictionary <int, PropertyInfo> MapColumns(IReadOnlyList <string> headings)
        {
            var mappings = new Dictionary <int, PropertyInfo>();

            var columnMappings = IfspGlobalPriceLookup.GetColumnMappings();

            for (var headingIndex = 0; headingIndex < headings.Count; ++headingIndex)
            {
                var heading = headings[headingIndex];
                mappings.Add(headingIndex, columnMappings[heading]);
            }

            return(mappings);
        }