Beispiel #1
0
        /// <summary>
        /// Check if Commission file is valid
        /// </summary>
        /// <returns></returns>
        private bool IsValidOrderFile()
        {
            //Take only the first line if is valid
            var validLines = OrdersFile.Take(1).Select(e => Commission.IsCsvValid(e)).ToList();

            return(validLines.Where(e => !e).Count() == 0);
        }