Exemple #1
0
        public void getEventdByPupilIdOldTest()
        {
            PrepareTestEvent();
            MsDbRequester msDbRequester = new MsDbRequester("name=StaffContextTests");
            Event         retEvent      = msDbRequester.getEventdByPupilIdOld(5000);

            Assert.IsTrue(retEvent.EventName == "Ушёл слишком рано");
        }
Exemple #2
0
        public void RegisterInputEventTest()
        {
            PrepareTestEvent();
            var TestListEvents = new List <object[]>();

            TestListEvents = PrepareTestListEvents(1);
            MsDb          msDb          = new MsDb("name=StaffContextTests");
            MsDbRequester msDbRequester = new MsDbRequester("name=StaffContextTests");
            var           curEvent      = msDbRequester.getEventdByPupilIdOld(5000);

            msDb.RegisterInputEvent(curEvent, TestListEvents.First(), 5000);
            String EventName = msDbRequester.getEventNameByPupilIdOld(5000);

            Assert.IsTrue(EventName == "Вернулся");
        }