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); }
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); }
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); }