예제 #1
0
        public void JsonMayorDataAccessUtc_ReadsFile_ReturnsRightRowNumber()
        {
            var jsonMayorDataAccesUtc = new JsonMayorDataAccessUtc(Constants.JsonDataFileName);

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

            var expectedRowCount = 4;

            Assert.Equal(expectedRowCount, actualDbPersonsRowCount);
        }
예제 #2
0
        public void JsonMayorDataAccessUtc_ReadsFile_ReturnsDbPresidentType()
        {
            var jsonMayorDataAccesUtc = new JsonMayorDataAccessUtc(Constants.JsonDataFileName);

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

            var expectedTypeName = "CommonDataAccess.CommonDbOfficer";

            Assert.Equal(expectedTypeName, actualDbPersonsTypeName);
        }