Пример #1
0
        public void CsvPresidentDataAccessEn_ReadsFile_ReturnsRightRowNumber()
        {
            var csvPresidentDataAccesEn = new CsvPresidentDataAccessEn(Constants.CsvDataFileName);

            var actualDbPersonsRowCount = csvPresidentDataAccesEn.GetCommonDbOfficers().Count();

            var expectedRowCount = 45;

            Assert.Equal(expectedRowCount, actualDbPersonsRowCount);
        }
Пример #2
0
        public void CsvPresidentDataAccessEn_ReadsFile_ReturnsDbPresidentType()
        {
            var csvPresidentDataAccesEn = new CsvPresidentDataAccessEn(Constants.CsvDataFileName);

            var actualDbPersonsTypeName = csvPresidentDataAccesEn.GetCommonDbOfficers().First().GetType().ToString();

            var expectedTypeName = "CommonDataAccess.CommonDbOfficer";

            Assert.Equal(expectedTypeName, actualDbPersonsTypeName);
        }