Esempio n. 1
0
        public void ReadSimpleCsvFile()
        {
            var csvDataProvider = new CsvDataProvider(new CsvDataProviderConfiguration
            {
                CsvFilePaths = new List <string> {
                    "./CsvFiles/Simple.csv"
                }
            });
            var entityDataList = csvDataProvider.GetEntityDataList();

            Assert.IsNotNull(entityDataList);

            var entityDataSimple = entityDataList[0];

            MyAssert.AssertSimple(entityDataSimple);
        }
Esempio n. 2
0
        public void ReadCsvsFromDictionary()
        {
            var csvDataProvider = new CsvDataProvider(new CsvDataProviderConfiguration
            {
                FolderPath = "./CsvFiles"
            });
            var entityDataList = csvDataProvider.GetEntityDataList();

            Assert.IsNotNull(entityDataList);

            var entityDataComplex = entityDataList[0];

            MyAssert.AssertComplex(entityDataComplex);

            var entityDataSimple = entityDataList[1];

            MyAssert.AssertSimple(entityDataSimple);
        }