Пример #1
0
        public void CheckDeniedAccessWithHalfDataTodelInWorkersPage()
        {
            SenderMail SenderMail = new SenderMail();
            WorkersS   Page       = new WorkersS();

            SenderMail.PosName = "Менеджер";
            bool Predict = false;
            bool result  = Page.CheckForDel(2);

            Assert.AreEqual(Predict, result);
        }
Пример #2
0
        public void CheckDeniedAccessTodelInWorkersPageHalfData()
        {
            SenderMail SenderMail = new SenderMail();
            WorkersS   Page       = new WorkersS();

            SenderMail.PosName = "Администратор";
            bool Predict = false;
            bool result  = Page.CheckForDel(0);

            Assert.AreEqual(Predict, result);
        }
Пример #3
0
        public void CheckGrantedAccessTodelInWorkersPage()
        {
            SenderMail SenderMail = new SenderMail();
            WorkersS   Page       = new WorkersS();

            SenderMail.PosName = "Администратор";
            bool Predict = true;
            bool result  = Page.CheckForDel(2);

            Assert.AreEqual(Predict, result);
        }