Exemplo n.º 1
0
        public void UpdateStaffDbTest()
        {
            MsDbUpdater msDbUpdater = new MsDbUpdater("name=StaffContextTests");
            var         AllStaff    = getStaffListTest();

            msDbUpdater.UpdateStaffDb(AllStaff);

            MsDbRequester msDbRequester = new MsDbRequester("name=StaffContextTests");
            String        FullFIO1      = msDbRequester.getFullFIOByPupilIdOld(5000);
            String        FullFIO2      = msDbRequester.getFullFIOByPupilIdOld(5001);
            String        FullFIO3      = msDbRequester.getFullFIOByPupilIdOld(5002);

            Assert.IsTrue(FullFIO1 == "Иванов Иван Иванович");
            Assert.IsTrue(FullFIO2 == "Петров Петр Петрович");
            Assert.IsTrue(FullFIO3 == "Сидоров Сидор Сидорович");
            EmptyChecker emptyChecker = new EmptyChecker("StaffContextTests");

            Assert.IsTrue(false == emptyChecker.IsTableEmpty("Schedules"));
        }