Exemplo n.º 1
0
        public void TestReadCsvFile()
        {
            var customerBets = CsvObjectReader.GetCustomerBets("../../../Settled.csv");

            Assert.IsNotNull(customerBets);
            Assert.AreEqual(50, customerBets.Count);
        }
        /// <summary>
        /// Loads keyed customers data from the source file.
        /// </summary>
        protected virtual void LoadKeyedCustomersData()
        {
            List <CustomerBet> list = CsvObjectReader.GetCustomerBets(DataSourceFilePath);

            KeyedCustomersData = list.OrderBy(i => i.CustomerId).GroupBy(i => i.CustomerId).ToDictionary(i => i.Key, i => i.ToList());
        }