Ejemplo n.º 1
0
        public void Csv2PresidentDataAccess_ReadsFile_ReturnsRightRowCount()
        {
            var csv2PresidentDataAccesUs = new Csv2PresidentDataAccessUs(Constants.Csv2DataFileName);

            var actualDbCommonOfficersRowCount = csv2PresidentDataAccesUs.GetCommonDbOfficers().Count();

            var expectedRowCount = 45;

            Assert.Equal(expectedRowCount, actualDbCommonOfficersRowCount);
        }
Ejemplo n.º 2
0
        public void CsvDataAccess2_ReadsFile_ReturnsDbPresidentType()
        {
            var csv2PresidentDataAccesUs = new Csv2PresidentDataAccessUs(Constants.Csv2DataFileName);

            var actualDbCommonOfficersTypeName = csv2PresidentDataAccesUs.GetCommonDbOfficers().First().GetType().ToString();

            var expectedTypeName = "CommonDataAccess.CommonDbOfficer";

            Assert.Equal(expectedTypeName, actualDbCommonOfficersTypeName);
        }