Example #1
0
        public void FakeCsvPresidentDataAccess_ReadsFile_ReturnsRightRowCount()
        {
            var fakeCsvPresidentDataAcces = new FakeCsvPresidentDataAccess();

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

            var expectedRowCount = 3;

            Assert.Equal(expectedRowCount, actualDbPersonsRowCount);
        }
Example #2
0
        public void FakeCsvPresidentDataAccess_ReadsFile_ReturnsDbPresidentType()
        {
            var fakeCsvPresidentDataAcces = new FakeCsvPresidentDataAccess();

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

            var expectedTypeName = "CommonDataAccess.CommonDbOfficer";

            Assert.Equal(expectedTypeName, actualDbPersonsTypeName);
        }